Rework website with bulma instead of bootstrap #6
|
@ -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