Do I Have To Create Separate Buffers Per Webgl Program?
Do I have to create separate webglbuffers if I have two programs or can I use the same ones in each? this.program = gl.createProgram(); gl.attachShader(this.program, vs);
Solution 1:
No, buffers, programs, attributes, renderbuffers, framebuffers, textures and texture units are independent from programs
Uniforms are program specific
Post a Comment for "Do I Have To Create Separate Buffers Per Webgl Program?"