I have a canvas which is filled by raw WebGL with primitives. A three.js library is supposed to draw stuff on the same canvas. Is this even possible? I get errors like:
WebGL: INVALID_OPERATION: uniformMatrix4fv: location is not from current program
In the past I used an overlay to achieve this. But the three.js stuff must be on the same canvas, because of future depth-tests and collision-detection. Is there a solution without migrating the raw WebGL stuff to three.js? Is this answer still up-to-date?