CX/shaders/SimpleVertexShader.vertexshader

16 lines
307 B
Text
Raw Normal View History

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