mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-07-01 06:41:26 +00:00
16 lines
470 B
GLSL
16 lines
470 B
GLSL
#version 330
|
|
|
|
in vec3 Position;
|
|
in float color;
|
|
|
|
uniform mat4 gWVP;
|
|
uniform mat4 gWV;
|
|
|
|
out vec3 ViewPos;
|
|
|
|
void main()
|
|
{
|
|
gl_Position = gWVP * vec4(Position, 1.0);
|
|
ViewPos = (gWV * vec4(Position, 1.0)).xyz;
|
|
}
|