ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libgender/material.C
(Generate patch)

Comparing libgender/material.C (file contents):
Revision 1.52 by root, Sat Nov 27 03:33:51 2004 UTC vs.
Revision 1.53 by root, Fri Dec 10 05:37:09 2004 UTC

93 temp_1f lz; 93 temp_1f lz;
94 94
95 // TODO: negative z is not calculated in an acceptable way, clipping does horrible things(?) 95 // TODO: negative z is not calculated in an acceptable way, clipping does horrible things(?)
96 lz = z (vout.position); 96 lz = z (vout.position);
97 lz = ifelse (lz <= 0, 97 lz = ifelse (lz <= 0,
98 lz, 98 0,
99 log (lz + 1) / log (1e10 + 1) 99 log (lz + 1) / log (1e18)
100 ) - 1; 100 ) - 1;
101 z (vout.position) = lz * w (vout.position); 101 z (vout.position) = lz * w (vout.position);
102 } 102 }
103 103
104 vsh_src = shader::shader_builder::stop (); 104 vsh_src = shader::shader_builder::stop ();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines