wynnpack-archive/assets/minecraft/shaders/core/render/glint.vsh
2024-12-07 12:29:57 +00:00

29 lines
539 B
GLSL

#version 150
#moj_import <fog.glsl>
#moj_import <util.glsl>
#moj_import <glint.glsl>
#moj_import <version.glsl>
in vec3 Position;
in vec2 UV0;
uniform mat4 ModelViewMat;
uniform mat4 ProjMat;
uniform mat4 TextureMat;
uniform int FogShape;
out float vertexDistance;
out vec2 texCoord0;
out vec2 edgeUV;
void main() {
gl_Position = ProjMat * ModelViewMat * vec4(Position, 1.0);
vertexDistance = fog_distance_custom(Position, FogShape);
texCoord0 = UV0;
int vertIndex = gl_VertexID & 3;
edgeUV = uvs[vertIndex];
}