Search
lxdream.org :: lxdream/src/pvr2/vertex.glsl :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/vertex.glsl
changeset 652:231ca5cbd397
prev645:a7392098299c
next1066:ddffe9d2b332
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/vertex.glsl Thu Mar 06 08:22:00 2008 +0000
1.2 +++ b/src/pvr2/vertex.glsl Wed Mar 26 11:56:12 2008 +0000
1.3 @@ -2,8 +2,9 @@
1.4
1.5 void main()
1.6 {
1.7 - gl_Position = ftransform();
1.8 -// gl_Position.z = log(gl_Vertex.z);
1.9 + vec4 tmp = ftransform();
1.10 + float w = gl_Vertex.z;
1.11 + gl_Position = tmp * w;
1.12 gl_FrontColor = gl_Color;
1.13 gl_FrontSecondaryColor = gl_SecondaryColor;
1.14 gl_TexCoord[0] = gl_MultiTexCoord0;
.