20 lines
413 B
GLSL
20 lines
413 B
GLSL
// MinecraftPT — Sky Vertex Shader
|
|
|
|
#include "/Lib/Settings.glsl"
|
|
#include "/Lib/Utilities.glsl"
|
|
|
|
out vec2 texcoord;
|
|
out vec3 worldPos;
|
|
out vec4 color;
|
|
|
|
void main(){
|
|
vec4 viewPos = gl_ModelViewMatrix * gl_Vertex;
|
|
vec4 wPos = gbufferModelViewInverse * viewPos;
|
|
worldPos = wPos.xyz;
|
|
|
|
texcoord = (gl_TextureMatrix[0] * gl_MultiTexCoord0).xy;
|
|
color = gl_Color;
|
|
|
|
gl_Position = gl_ProjectionMatrix * viewPos;
|
|
}
|