The vertex shader failed to compile, because it has to be gl_Position instead of gl_position. GLSL is case sensitive. See Vertex Shader - Outputs:
void main() { gl_Position.xy = vertexPosition * 2; gl_Position.z = 0.0; gl_Position.w = 1.0; } Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about CollectivesStack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
Explore Stack Internal The vertex shader failed to compile, because it has to be gl_Position instead of gl_position. GLSL is case sensitive. See Vertex Shader - Outputs:
void main() { gl_Position.xy = vertexPosition * 2; gl_Position.z = 0.0; gl_Position.w = 1.0; } The vertex shader failed to compile, because it has to be gl_Position instead of gl_position. GLSL is case sensitive:
void main() { gl_Position.xy = vertexPosition * 2; gl_Position.z = 0.0; gl_Position.w = 1.0; } The vertex shader failed to compile, because it has to be gl_Position instead of gl_position. GLSL is case sensitive. See Vertex Shader - Outputs:
void main() { gl_Position.xy = vertexPosition * 2; gl_Position.z = 0.0; gl_Position.w = 1.0; }