fast-nuclear-sim/assets/shader/light.vsh

18 lines
242 B
V Shell
Raw Normal View History

2024-02-24 22:52:29 +11:00
#version 460 core
layout (location = 2) in vec4 aPos;
2024-02-25 21:54:51 +11:00
layout (location = 5) in vec3 aMaterial;
2024-02-24 22:52:29 +11:00
uniform mat4 model;
uniform mat4 camera;
2024-02-25 21:54:51 +11:00
out float emissive;
2024-02-24 22:52:29 +11:00
void main()
{
gl_Position = camera * model * aPos;
2024-02-25 21:54:51 +11:00
emissive = aMaterial[2];
2024-02-24 22:52:29 +11:00
}