mirror of
https://github.com/Rezmason/matrix.git
synced 2026-04-14 12:29:30 -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,
|
||||
wrapT: "clamp",
|
||||
type: "half float",
|
||||
data: Array(width * height * 4).fill(0)
|
||||
});
|
||||
|
||||
const numVerticesPerQuad = 2 * 3;
|
||||
|
||||
Reference in New Issue
Block a user