With WebGL 2's shaders, we have to prepend all shaders with the following line of code: #version 300 es. It’s important to note that this must be the very first line in the shader, otherwise the shader will not compile.
With WebGL 2's shaders, we have to prepend all shaders with the following line of code: #version 300 es. It’s important to note that this must be the very first line in the shader, otherwise the shader will not compile.