stk-code_catmod/data/shaders/displace.vert
vincentlj 9d7ab41c11 OGL32CTX: Replace ftransform by gl_ModelViewProjectionMatrix * gl_Vertex.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14979 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2014-01-09 16:09:27 +00:00

14 lines
259 B
GLSL

#version 130
out vec2 uv;
out vec2 edger_uv;
out float camdist;
void main() {
gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
uv = gl_MultiTexCoord0.xy;
edger_uv = gl_MultiTexCoord1.xy;
camdist = length((gl_ModelViewMatrix * gl_Vertex).xyz);
}