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 Sun Sep 07 04:23:49 2008 +0000 (14 years ago)
permissions -rw-r--r--
last change Fog work-in-progress
file annotate diff log raw
nkeynes@653
     1
// Standard PVR2 vertex shader
nkeynes@653
     2
nkeynes@653
     3
void main()
nkeynes@653
     4
{
nkeynes@653
     5
    vec4 tmp = ftransform();
nkeynes@653
     6
    float w = gl_Vertex.z;
nkeynes@653
     7
    gl_Position  = tmp * w;
nkeynes@653
     8
    gl_FrontColor = gl_Color;
nkeynes@653
     9
    gl_FrontSecondaryColor = gl_SecondaryColor;
nkeynes@653
    10
    gl_TexCoord[0] = gl_MultiTexCoord0;
nkeynes@847
    11
    gl_FogFragCoord = gl_FogCoord;
nkeynes@653
    12
}
.