stk-code_catmod/data/shaders/displace.vert
vincentlj 9a99c3dae6 OGL32CTX: Replace implicitly defined uniforms in displace
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14985 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2014-01-09 17:32:51 +00:00

17 lines
329 B
GLSL

#version 130
uniform mat4 ModelViewMatrix;
uniform mat4 ProjectionMatrix;
out vec2 uv;
out vec2 edger_uv;
out float camdist;
void main() {
vec4 position = ModelViewMatrix * gl_Vertex;
gl_Position = ProjectionMatrix * position;
uv = gl_MultiTexCoord0.xy;
edger_uv = gl_MultiTexCoord1.xy;
camdist = length(position.xyz);
}