mirror of
https://github.com/Rezmason/matrix.git
synced 2026-04-14 12:29:30 -07:00
Added WebGPU support and added caching to the WebGPU version.
This commit is contained in:
@@ -6,6 +6,7 @@ import {
|
||||
makeBindGroup,
|
||||
makePass,
|
||||
} from "./utils.js";
|
||||
import mirrorPassShader from "../../shaders/wgsl/mirrorPass.wgsl";
|
||||
|
||||
let start;
|
||||
const numTouches = 5;
|
||||
@@ -25,7 +26,7 @@ window.onclick = (e) => {
|
||||
};
|
||||
|
||||
export default ({ config, device, cameraTex, cameraAspectRatio, timeBuffer }) => {
|
||||
const assets = [loadShader(device, "shaders/wgsl/mirrorPass.wgsl")];
|
||||
const assets = [loadShader(device, mirrorPassShader)];
|
||||
|
||||
const linearSampler = device.createSampler({
|
||||
magFilter: "linear",
|
||||
|
||||
Reference in New Issue
Block a user