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

Comparing libgender/shader_vars.h (file contents):
Revision 1.4 by root, Sun Oct 24 20:29:54 2004 UTC vs.
Revision 1.5 by root, Sun Oct 24 21:16:41 2004 UTC

19 static varying_2f tex_coord_2f[8]; 19 static varying_2f tex_coord_2f[8];
20 static varying_3f tex_coord_3f[8]; 20 static varying_3f tex_coord_3f[8];
21 static varying_4f tex_coord_4f[8]; 21 static varying_4f tex_coord_4f[8];
22 22
23 // for the vertex shader 23 // for the vertex shader
24 static const glvar vertex; 24 static const gluvar vertex;
25 static const glvar normal; 25 static const gluvar normal;
26 static const glvar color; 26 static const gluvar color;
27 static const glvar secondary_color; 27 static const gluvar secondary_color;
28 static const glvar tex_coord[8]; 28 static const gluvar tex_coord[8];
29 static const glvar fog_coord; 29 static const gluvar fog_coord;
30 } vin; 30 } vin;
31 31
32 extern struct vout 32 extern struct vout
33 { 33 {
34 // glstate builtin 34 // glstate builtin
35 static const glvar position; 35 static const gluvar position;
36 static const glvar point_size; 36 static const gluvar point_size;
37 static const glvar clip_vertex; 37 static const gluvar clip_vertex;
38 38
39 // standard varying 39 // standard varying
40 static const glvar front_color; 40 static const gluvar front_color;
41 static const glvar back_color; 41 static const gluvar back_color;
42 static const glvar front_secondary_color; 42 static const gluvar front_secondary_color;
43 static const glvar back_secondary_color; 43 static const gluvar back_secondary_color;
44 static const glvar tex_coord[8]; 44 static const gluvar tex_coord[8];
45 static const glvar fog_frag_coord; 45 static const gluvar fog_frag_coord;
46 } vout; 46 } vout;
47 47
48 extern struct fin 48 extern struct fin
49 { 49 {
50 // glstate builtin 50 // glstate builtin
51 static const glvar frag_coord; 51 static const gluvar frag_coord;
52 static const glvar front_facing; 52 static const gluvar front_facing;
53 53
54 // standard varying 54 // standard varying
55 static const glvar color; 55 static const gluvar color;
56 static const glvar secondary_color; 56 static const gluvar secondary_color;
57 static const glvar tex_coord[8]; 57 static const gluvar tex_coord[8];
58 static const glvar fog_frag_coord; 58 static const gluvar fog_frag_coord;
59 } fin; 59 } fin;
60 60
61 extern struct fout 61 extern struct fout
62 { 62 {
63 // glstate builtin 63 // glstate builtin
64 static const glvar frag_color; 64 static const gluvar frag_color;
65 static const glvar frag_depth; 65 static const gluvar frag_depth;
66 static const glvar frag_data[2]; 66 static const gluvar frag_data[2];
67 } fout; 67 } fout;
68 68
69 // predefined globals 69 // predefined globals
70 extern struct gl { 70 extern struct gl {
71 static glvar model_view_matrix, 71 static gluvar model_view_matrix,
72 projection_matrix, 72 projection_matrix,
73 model_view_projection_matrix, 73 model_view_projection_matrix,
74 texture_matrix[8]; 74 texture_matrix[8];
75 static glvar model_view_matrix_inverse, 75 static gluvar model_view_matrix_inverse,
76 projection_matrix_inverse, 76 projection_matrix_inverse,
77 model_view_projection_matrix_inverse, 77 model_view_projection_matrix_inverse,
78 texture_matrix_inverse[8]; 78 texture_matrix_inverse[8];
79 static glvar model_view_matrix_transpose, 79 static gluvar model_view_matrix_transpose,
80 projection_matrix_transpose, 80 projection_matrix_transpose,
81 model_view_projection_matrix_transpose, 81 model_view_projection_matrix_transpose,
82 texture_matrix_transpose[8]; 82 texture_matrix_transpose[8];
83 static glvar model_view_matrix_inverse_transpose, 83 static gluvar model_view_matrix_inverse_transpose,
84 projection_matrix_inverse_transpose, 84 projection_matrix_inverse_transpose,
85 model_view_projection_matrix_inverse_transpose, 85 model_view_projection_matrix_inverse_transpose,
86 texture_matrix_inverse_transpose[8]; 86 texture_matrix_inverse_transpose[8];
87 87
88 static glvar normal_matrix; 88 static gluvar normal_matrix;
89 89
90 static glvar normal_scale; 90 static gluvar normal_scale;
91 static glvar depth_range_near, depth_range_far, depth_range_diff; 91 static gluvar depth_range_near, depth_range_far, depth_range_diff;
92 92
93 static glvar clip_plane[2];//TODO 93 static gluvar clip_plane[2];//TODO
94 94
95 // point parameters TODO 95 // point parameters TODO
96 96
97 static glvar front_material_emission, 97 static gluvar front_material_emission,
98 front_material_ambient, 98 front_material_ambient,
99 front_material_diffuse, 99 front_material_diffuse,
100 front_material_specular, 100 front_material_specular,
101 front_material_shininess; 101 front_material_shininess;
102 static glvar back_material_emission, 102 static gluvar back_material_emission,
103 back_material_ambient, 103 back_material_ambient,
104 back_material_diffuse, 104 back_material_diffuse,
105 back_material_specular, 105 back_material_specular,
106 back_material_shininess; 106 back_material_shininess;
107 107
108 // light source parameters TODO 108 // light source parameters TODO
109 109
110 static glvar light_model_ambient; 110 static gluvar light_model_ambient;
111 static glvar front_light_model_product_scene_color; 111 static gluvar front_light_model_product_scene_color;
112 static glvar back_light_model_product_scene_color; 112 static gluvar back_light_model_product_scene_color;
113 113
114 // light products TODO 114 // light products TODO
115 // texture env and gen TODO 115 // texture env and gen TODO
116 // fogparameters TODO 116 // fogparameters TODO
117 117

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines