Search
lxdream.org :: lxdream/src/pvr2/gl_slsrc.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/gl_slsrc.c
changeset 652:231ca5cbd397
prev645:a7392098299c
author nkeynes
date Wed Mar 26 11:56:12 2008 +0000 (12 years ago)
branchlxdream-render
permissions -rw-r--r--
last change Fix perspective correction (at least for those with shader support)
file annotate diff log raw
1.1 --- a/src/pvr2/gl_slsrc.c Thu Mar 06 08:22:00 2008 +0000
1.2 +++ b/src/pvr2/gl_slsrc.c Wed Mar 26 11:56:12 2008 +0000
1.3 @@ -6,8 +6,9 @@
1.4 \n\
1.5 void main()\n\
1.6 {\n\
1.7 - gl_Position = ftransform();\n\
1.8 -// gl_Position.z = log(gl_Vertex.z);\n\
1.9 + vec4 tmp = ftransform();\n\
1.10 + float w = gl_Vertex.z;\n\
1.11 + gl_Position = tmp * w;\n\
1.12 gl_FrontColor = gl_Color;\n\
1.13 gl_FrontSecondaryColor = gl_SecondaryColor;\n\
1.14 gl_TexCoord[0] = gl_MultiTexCoord0;\n\
.