rainPass now renders multiple cameras and viewports, using data from the hardware.

Added quiltPass (which uses holoplay’s quilting shader).
Added a holoplay effect version. (Versions can also now specify a preferred renderer.)
This commit is contained in:
Rezmason
2021-12-15 07:20:33 -08:00
parent 68ad689e1e
commit 2364bbc8bc
7 changed files with 1047 additions and 12 deletions

View File

@@ -12,8 +12,8 @@ const supportsWebGPU = async () => {
document.body.onload = async () => {
const urlParams = Object.fromEntries(new URLSearchParams(window.location.search).entries());
const useREGL = !(await supportsWebGPU()) || ["webgl", "regl"].includes(urlParams.renderer?.toLowerCase());
const solution = import(`./${useREGL ? "regl" : "webgpu"}/main.js`);
const config = makeConfig(urlParams);
const useREGL = !(await supportsWebGPU()) || ["webgl", "regl"].includes(config.renderer?.toLowerCase());
const solution = import(`./${useREGL ? "regl" : "webgpu"}/main.js`);
(await solution).default(canvas, config);
};