Files
ghostland-game/trailshader.glsl
2023-10-09 21:43:49 -04:00

16 lines
259 B
GLSL

#version 460 core
layout (location = 0) in vec3 aPos;
out vec3 FragPos;
uniform mat4 model;
uniform mat4 view;
uniform mat4 projection;
void main()
{
FragPos = vec3(model * vec4(aPos, 1.0));
gl_Position = projection * view * vec4(FragPos, 1.0);
}