CX/shaders/SimpleVertexShader.vertexshader

15 lines
307 B
Text

#version 330 core
// Input vertex data, different for all executions of this shader.
layout(location = 0) in vec4 position;
layout(location = 1) in vec4 normal;
out vec3 colorF;
void main() {
colorF.x = position.x;
colorF.y = position.y;
colorF.z = position.z;
gl_Position = position;
}