wynnpack-archive/assets/minecraft/shaders/core/render/glint.vsh

30 lines
539 B
V Shell
Raw Permalink Normal View History

2024-12-07 12:33:02 +00:00
#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];
}