Search
lxdream.org :: lxdream/src/pvr2/vertex.glsl :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/vertex.glsl
changeset 653:3202ff01d48e
next847:2089244671d2
author nkeynes
date Mon May 12 10:00:13 2008 +0000 (15 years ago)
permissions -rw-r--r--
last change Cleanup most of the -Wall warnings (getting a bit sloppy...)
Convert FP code to use fixed banks rather than indirect pointer
(3-4% faster this way now)
file annotate diff log raw
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/src/pvr2/vertex.glsl Mon May 12 10:00:13 2008 +0000
1.3 @@ -0,0 +1,11 @@
1.4 +// Standard PVR2 vertex shader
1.5 +
1.6 +void main()
1.7 +{
1.8 + vec4 tmp = ftransform();
1.9 + float w = gl_Vertex.z;
1.10 + gl_Position = tmp * w;
1.11 + gl_FrontColor = gl_Color;
1.12 + gl_FrontSecondaryColor = gl_SecondaryColor;
1.13 + gl_TexCoord[0] = gl_MultiTexCoord0;
1.14 +}
.