2024-02-24 22:52:29 +11:00
|
|
|
|
|
|
|
#version 460 core
|
|
|
|
|
|
|
|
layout (location = 2) in vec4 aPos;
|
2024-02-29 15:30:50 +11:00
|
|
|
layout (location = 4) in vec4 aColour;
|
2024-02-25 21:54:51 +11:00
|
|
|
layout (location = 5) in vec3 aMaterial;
|
2024-03-03 12:12:21 +11:00
|
|
|
layout (location = 6) in float aTransformIndex;
|
2024-02-24 22:52:29 +11:00
|
|
|
|
|
|
|
uniform mat4 model;
|
|
|
|
uniform mat4 camera;
|
|
|
|
|
2024-03-03 12:12:21 +11:00
|
|
|
out flat int should_ignore;
|
2024-02-25 21:54:51 +11:00
|
|
|
|
2024-02-24 22:52:29 +11:00
|
|
|
void main()
|
|
|
|
{
|
|
|
|
gl_Position = camera * model * aPos;
|
2024-03-03 12:12:21 +11:00
|
|
|
should_ignore = int(aTransformIndex >= 0.f || aMaterial[2] > 0.f || aColour.a < 1.f);
|
2024-02-24 22:52:29 +11:00
|
|
|
}
|
|
|
|
|