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:
Rezmason
2024-06-27 12:46:33 -07:00
parent bbd32f83f4
commit f14651c2b2

View File

@@ -20,6 +20,7 @@ const makeComputeDoubleBuffer = (regl, height, width) =>
height,
wrapT: "clamp",
type: "half float",
data: Array(width * height * 4).fill(0)
});
const numVerticesPerQuad = 2 * 3;