#version 150 #moj_import #moj_import #moj_import #moj_import 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]; }