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

Comparing libgender/material.C (file contents):
Revision 1.37 by root, Thu Nov 4 15:43:53 2004 UTC vs.
Revision 1.38 by root, Fri Nov 5 04:08:23 2004 UTC

83 shader::shader_builder::start (); 83 shader::shader_builder::start ();
84 vsh (ctx); 84 vsh (ctx);
85 85
86 if (ctx.pass_data->l) 86 if (ctx.pass_data->l)
87 ctx.pass_data->l->vsh (); 87 ctx.pass_data->l->vsh ();
88
89 {
90 using namespace shader::compile;
91
92 z (vout.position) = log2 (z (vout.position) / w (vout.position)) * w (vout.position);
93 }
88 94
89 po->vsh->compile (shader::shader_builder::stop ()); 95 po->vsh->compile (shader::shader_builder::stop ());
90 96
91 shader::shader_builder::start (); 97 shader::shader_builder::start ();
92 shader::compile::fout.frag_color = shader::compile::float4 (1., 1., 0., 1.); 98 shader::compile::fout.frag_color = shader::compile::float4 (1., 1., 0., 1.);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines