Clean up some debris

This commit is contained in:
Tristan Daniël Maat 2022-08-12 23:26:08 +01:00
parent 14d1f71b2b
commit 81e7bd98ff
Signed by: tlater
GPG key ID: 49670FD774E43268

View file

@ -193,8 +193,6 @@ class Renderer {
this.buffers.positions === undefined ||
this.buffers.normals === undefined ||
this.buffers.fft === undefined
// this.buffers.velocitiesRead === undefined ||
// this.buffers.velocitiesWrite === undefined
) {
throw new Error("failed to create buffers before rendering");
}
@ -226,7 +224,6 @@ class Renderer {
// Update fft
this.analyser.getByteFrequencyData(this.analyserData);
// this.analyserData.fill(255);
gl.bindBuffer(gl.ARRAY_BUFFER, this.buffers.fft);
gl.bufferData(gl.ARRAY_BUFFER, this.analyserData, gl.STREAM_DRAW);