2023-10-25 13:02:23 +00:00
|
|
|
#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;
|
2023-10-25 13:02:23 +00:00
|
|
|
|
|
|
|
void main() {
|
2024-07-06 16:04:24 +00:00
|
|
|
colorF.x = position.x;
|
|
|
|
colorF.y = position.y;
|
|
|
|
colorF.z = position.z;
|
2023-10-25 13:02:23 +00:00
|
|
|
|
|
|
|
gl_Position = position;
|
|
|
|
}
|
|
|
|
|