I'm getting Uncaught SyntaxError: Unexpected identifier at attribute vec3 aVertexPosition;
<script id="shader-vs" type="text/javascript">
attribute vec3 aVertexPosition;
uniform mat4 uMVMatrix;
uniform mat4 uPMatrix;
void main(void) {
gl_Position = uPMatrix * uMVMatrix * vec4(aVertexPosition, 1.0);
}
Anyone knows how to fix it ? I'm pretty noob in webgl and I got more and more confused.