mirror of
https://github.com/Rezmason/matrix.git
synced 2026-04-17 05:49:30 -07:00
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:
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user