mirror of
https://github.com/Rezmason/matrix.git
synced 2026-04-17 13:59:30 -07:00
Adding some more comments. Destructuring the context object in the pass modules. A little code cleanup in bloomPass. Changing the endPass sampler to be cheaper.
This commit is contained in:
@@ -31,9 +31,7 @@ const makeConfigBuffer = (device, configUniforms, config, density, gridSize) =>
|
||||
return makeUniformBuffer(device, configUniforms, configData);
|
||||
};
|
||||
|
||||
export default (context) => {
|
||||
const { config, device, timeBuffer, canvasFormat } = context;
|
||||
|
||||
export default ({ config, device, timeBuffer, canvasFormat }) => {
|
||||
const assets = [loadTexture(device, config.glyphTexURL), loadShader(device, "shaders/wgsl/rainPass.wgsl")];
|
||||
|
||||
// The volumetric mode multiplies the number of columns
|
||||
|
||||
Reference in New Issue
Block a user