CX/shaders/SimpleVertexShader.vertexshader

17 lines
334 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;
2024-10-02 20:18:24 +00:00
layout(location = 2) in vec3 color;
2024-07-06 16:04:24 +00:00
out vec3 colorF;
void main() {
2024-10-02 20:18:24 +00:00
colorF.x = color.x;
colorF.y = color.y;
colorF.z = color.z;
gl_Position = position;
}