--- cvsroot/libgender/material.C 2004/11/02 02:59:33 1.29 +++ cvsroot/libgender/material.C 2004/11/03 01:12:34 1.30 @@ -90,7 +90,7 @@ { using namespace shader::compile; - p.vsh->start (); + p->vsh->start (); temp_4f wpos; varying_1f camdist, zpos; @@ -108,9 +108,9 @@ lightvec = xyz (lightpos - model_view_matrix * vin.vertex); camdist = 1 - max (length (lightvec) / 10000., 0); - p.vsh->stop (); + p->vsh->stop (); - p.fsh->start (); + p->fsh->start (); temp_1f fac; temp_2f disp; @@ -124,13 +124,13 @@ fac = pow (max (fac, 0.0), 2); xyz (fout.frag_color) = texture_2d (texvar, texcoord) * (fac + 0.4) * camdist; - p.fsh->stop (); - p.link (); + p->fsh->stop (); + p->link (); } void test_material::enable (view &ctx) { - p.enable (); + p->enable (); lightpos->set (vec3 (0, 0, 0)); texvar->enable (); normvar->enable (); @@ -140,6 +140,6 @@ { normvar->disable (); texvar->disable (); - p.disable (); + p->disable (); }