mirror of
https://github.com/Rezmason/matrix.git
synced 2026-04-18 22:29:28 -07:00
Initializing the regl double buffer with an array of zeroes, to overwrite any garbage values that a browser may have left in there.
This commit is contained in:
@@ -20,6 +20,7 @@ const makeComputeDoubleBuffer = (regl, height, width) =>
|
|||||||
height,
|
height,
|
||||||
wrapT: "clamp",
|
wrapT: "clamp",
|
||||||
type: "half float",
|
type: "half float",
|
||||||
|
data: Array(width * height * 4).fill(0)
|
||||||
});
|
});
|
||||||
|
|
||||||
const numVerticesPerQuad = 2 * 3;
|
const numVerticesPerQuad = 2 * 3;
|
||||||
|
|||||||
Reference in New Issue
Block a user