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

Comparing libgender/material.h (file contents):
Revision 1.19 by root, Mon Feb 7 07:37:00 2005 UTC vs.
Revision 1.20 by root, Mon Feb 7 08:51:18 2005 UTC

85 void disable (view &ctx); 85 void disable (view &ctx);
86 86
87 test_material (); 87 test_material ();
88}; 88};
89 89
90struct test_material2 : material 90struct mat_gouraud_shaded : material
91{ 91{
92// texture tex, norm; 92// texture tex, norm;
93// shader::sampler_2d texvar, normvar; 93// shader::sampler_2d texvar, normvar;
94 colour c;
94 95
95 void vsh (view &ctx); 96 void vsh (view &ctx);
96 void fsh (view &ctx); 97 void fsh (view &ctx);
97 98
98 // void enable (view &ctx); 99 void enable (view &ctx);
99 // void disable (view &ctx); 100 void disable (view &ctx);
101
102 mat_gouraud_shaded (const colour &c) : c(c) { }
103
104protected:
105 shader::uniform_3f sh_colour;
106 shader::varying_3f f_normal;
100}; 107};
101 108
102
103extern test_material *testmat; 109extern test_material *testmat;
104extern test_material2 *testmat2; 110extern mat_gouraud_shaded *testmat2;
105 111
106#endif 112#endif
107 113
108 114

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines