mirror of
https://github.com/Rezmason/matrix.git
synced 2026-04-18 06:09:30 -07:00
Moved the WebGPU code off of "std140" and onto gpu-uniforms.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import std140 from "./std140.js";
|
||||
import uniforms from "/lib/gpu-uniforms.js";
|
||||
import { loadTexture, loadShader, makeUniformBuffer, makePassFBO, makePass } from "./utils.js";
|
||||
|
||||
// Multiplies the rendered rain and bloom by a loaded in image
|
||||
@@ -10,9 +10,6 @@ export default (context, getInputs) => {
|
||||
const { config, adapter, device, canvasContext } = context;
|
||||
const ditherMagnitude = 0.05;
|
||||
|
||||
const configLayout = std140(["f32", "vec3<f32>"]);
|
||||
const configBuffer = makeUniformBuffer(device, configLayout, [ditherMagnitude, config.backgroundColor]);
|
||||
|
||||
const linearSampler = device.createSampler({
|
||||
magFilter: "linear",
|
||||
minFilter: "linear",
|
||||
|
||||
Reference in New Issue
Block a user