Clean up some debris
This commit is contained in:
parent
14d1f71b2b
commit
81e7bd98ff
|
@ -193,8 +193,6 @@ class Renderer {
|
||||||
this.buffers.positions === undefined ||
|
this.buffers.positions === undefined ||
|
||||||
this.buffers.normals === undefined ||
|
this.buffers.normals === undefined ||
|
||||||
this.buffers.fft === undefined
|
this.buffers.fft === undefined
|
||||||
// this.buffers.velocitiesRead === undefined ||
|
|
||||||
// this.buffers.velocitiesWrite === undefined
|
|
||||||
) {
|
) {
|
||||||
throw new Error("failed to create buffers before rendering");
|
throw new Error("failed to create buffers before rendering");
|
||||||
}
|
}
|
||||||
|
@ -226,7 +224,6 @@ class Renderer {
|
||||||
|
|
||||||
// Update fft
|
// Update fft
|
||||||
this.analyser.getByteFrequencyData(this.analyserData);
|
this.analyser.getByteFrequencyData(this.analyserData);
|
||||||
// this.analyserData.fill(255);
|
|
||||||
|
|
||||||
gl.bindBuffer(gl.ARRAY_BUFFER, this.buffers.fft);
|
gl.bindBuffer(gl.ARRAY_BUFFER, this.buffers.fft);
|
||||||
gl.bufferData(gl.ARRAY_BUFFER, this.analyserData, gl.STREAM_DRAW);
|
gl.bufferData(gl.ARRAY_BUFFER, this.analyserData, gl.STREAM_DRAW);
|
||||||
|
|
Reference in a new issue