mirror of
https://github.com/greggman/twgl.js.git
synced 2026-01-25 14:57:59 +00:00
remove unused uniforms
This commit is contained in:
parent
0b21b6e9f6
commit
d8a66ea4db
@ -143,9 +143,6 @@ void main() {
|
||||
height: { data: heightArray, numComponents: 1, drawType: gl.DYNAMIC_DRAW },
|
||||
};
|
||||
var bufferInfo = twgl.createBufferInfoFromArrays(gl, arrays);
|
||||
var uniforms = {
|
||||
u_color: [1, 0, 0, 1],
|
||||
};
|
||||
|
||||
function render() {
|
||||
twgl.resizeCanvasToDisplaySize(gl.canvas);
|
||||
@ -159,12 +156,9 @@ void main() {
|
||||
gl.useProgram(programInfo.program);
|
||||
|
||||
analyser.getByteFrequencyData(heightArray);
|
||||
|
||||
twgl.setAttribInfoBufferFromArray(gl, bufferInfo.attribs.a_height, heightArray);
|
||||
|
||||
twgl.setBuffersAndAttributes(gl, programInfo, bufferInfo);
|
||||
twgl.setUniforms(programInfo, uniforms);
|
||||
|
||||
twgl.drawBufferInfo(gl, gl.LINE_STRIP, bufferInfo);
|
||||
|
||||
requestAnimationFrame(render);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user