Fragment shader is not compiled.
WebGL: INVALID_OPERATION: useProgram: program not valid
v3d.js:1 WebGL: too many errors
What is the procedure to correct this?
According to https://www.soft8soft.com/docs/api/en/renderers/WebGLRenderer.html#debug
.debug : Object
checkShaderErrors: If it is true, defines whether material shader programs are checked for errors during compilation and linkage process. It may be useful to disable this check in production for performance gain. It is strongly recommended to keep these checks enabled during development. If the shader does not compile and link – it will not work and associated material will not render. Default is true.
But it does not describe how to “disable this check”
How do I determine what is the cause of this error?
Thanks.