Search
lxdream.org :: lxdream/src/pvr2/vertex.glsl
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/vertex.glsl
changeset 1066:ddffe9d2b332
prev847:2089244671d2
prev652:231ca5cbd397
author nkeynes
date Sun Jan 31 18:35:06 2010 +1000 (14 years ago)
permissions -rw-r--r--
last change Refactor CDROM host support
- Completely separate GDROM hardware (in gdrom/gdrom.c) from generic CDROM
support (now in drivers/cdrom)
- Add concept of 'sector sources' that can be mixed and matched to create
cdrom discs (makes support of arbitrary disc types much simpler)
file annotate diff log raw
nkeynes@635
     1
// Standard PVR2 vertex shader
nkeynes@635
     2
nkeynes@635
     3
void main()
nkeynes@635
     4
{
nkeynes@652
     5
    vec4 tmp = ftransform();
nkeynes@652
     6
    float w = gl_Vertex.z;
nkeynes@652
     7
    gl_Position  = tmp * w;
nkeynes@635
     8
    gl_FrontColor = gl_Color;
nkeynes@635
     9
    gl_FrontSecondaryColor = gl_SecondaryColor;
nkeynes@635
    10
    gl_TexCoord[0] = gl_MultiTexCoord0;
nkeynes@847
    11
    gl_FogFragCoord = gl_FogCoord;
nkeynes@635
    12
}
.