Search
lxdream.org :: lxdream/src/pvr2/vertex.glsl
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/vertex.glsl
changeset 847:2089244671d2
prev653:3202ff01d48e
next1066:ddffe9d2b332
author nkeynes
date Wed Jun 03 10:29:16 2009 +0000 (14 years ago)
permissions -rw-r--r--
last change Allow multiple input hooks to be registered for the same key - useful to allow
eg binding the same hotkey for run/stop so that it works as a toggle.
view annotate diff log raw
     1 // Standard PVR2 vertex shader
     3 void main()
     4 {
     5     vec4 tmp = ftransform();
     6     float w = gl_Vertex.z;
     7     gl_Position  = tmp * w;
     8     gl_FrontColor = gl_Color;
     9     gl_FrontSecondaryColor = gl_SecondaryColor;
    10     gl_TexCoord[0] = gl_MultiTexCoord0;
    11     gl_FogFragCoord = gl_FogCoord;
    12 }
.