Graphite  Version 3
An experimental 3D geometry processing program
state.h
1 layout(shared)
2  uniform GLUPStateBlock {
3 
4  bool vertex_colors_enabled;
5 
6  vec4 front_color;
7  vec4 back_color;
8 
9  bool draw_mesh_enabled;
10  vec4 mesh_color;
11  float mesh_width;
12 
13  bool lighting_enabled;
14  bool vertex_normals_enabled;
15  bool normal_mapping_enabled;
16  vec3 light_vector;
17  vec3 light_half_vector;
18  float specular;
19 
20  bool texturing_enabled;
21  bool indirect_texturing_enabled;
22  int texture_mode;
23  int texture_type;
24 
25  float cells_shrink;
26 
27  bool picking_enabled;
28  int picking_mode;
29  int picking_id;
30  int base_picking_id;
31 
32  bool clipping_enabled;
33  int clipping_mode;
34  vec4 clip_plane;
35  vec4 world_clip_plane;
36  vec4 clip_clip_plane;
37 
38  bool alpha_discard_enabled;
39  float alpha_threshold;
40 
41  bool primitive_filtering_enabled;
42 
43  mat4 modelviewprojection_matrix;
44  mat4 modelview_matrix;
45  mat4 projection_matrix;
46  mat3 normal_matrix;
47  mat4 texture_matrix;
48  mat4 inverse_modelviewprojection_matrix;
49  mat4 inverse_modelview_matrix;
50  mat4 inverse_projection_matrix;
51  vec4 viewport;
52 
53  float point_size;
54 } GLUP;
55 
56 // Note: the 1D colormap is stored in a 2D texture, because
57 // 1D textures are not supported by all OpenGL implementations
58 uniform sampler2D texture1Dsampler;
59 uniform sampler2D texture2Dsampler;
60 uniform sampler3D texture3Dsampler;
61 
62 #define GLUP_PRIMITIVE_FILTER
63 uniform usamplerBuffer texturePrimitiveFiltersampler;
Matrix< 4, Numeric::float64 > mat4
Represents a 4x4 matrix.
Definition: geometry.h:133
vecng< 3, Numeric::float64 > vec3
Represents points and vectors in 3d.
Definition: geometry.h:65
vecng< 4, Numeric::float64 > vec4
Represents points and vectors in 4d.
Definition: geometry.h:71
Matrix< 3, Numeric::float64 > mat3
Represents a 3x3 matrix.
Definition: geometry.h:127