I have a GL shader file whose first few lines currently look like this:
#version 120 layout (location = 0) in vec3 position; layout (location = 1) in vec2 vertexUV;
When I try to compile this shader when running the program, it returns this error:
0:2(1): error: syntax error, unexpected NEW_IDENTIFIER
From what I know, this means that the word
layout is giving it trouble. What am I doing wrong? Do I need to provide more information?