Graphite Version 3
An experimental 3D geometry processing program
Loading...
Searching...
No Matches
fragment_shader_state.h
2 bool vertex_colors_enabled;
3
4 vec4 front_color;
5 vec4 back_color;
6
7 bool draw_mesh_enabled;
8 vec4 mesh_color;
9 float mesh_width;
10
11 bool lighting_enabled;
12 bool normal_mapping_enabled;
13 vec3 light_vector;
14 vec3 light_half_vector;
15 float specular;
16
17 bool texturing_enabled;
18 bool indirect_texturing_enabled;
19 int texture_mode;
20 int texture_type;
21
22 float cells_shrink;
23
24 bool picking_enabled;
25 int picking_mode;
26 int picking_id;
27 int base_picking_id;
28
29 bool clipping_enabled;
30 int clipping_mode;
31 vec4 clip_plane;
32 vec4 world_clip_plane;
33
34 bool alpha_discard_enabled;
35 float alpha_threshold;
36
37 mat4 texture_matrix;
38 mat4 modelviewprojection_matrix;
39 mat4 inverse_modelviewprojection_matrix;
40 mat3 normal_matrix;
41
42 vec4 viewport;
43
44 bool vertex_normals_enabled;
45 bool primitive_filtering_enabled;
46 bool thick_lines_enabled;
47};
48
49uniform UniformState GLUP;
50uniform sampler2D texture1Dsampler;
51uniform sampler2D texture2Dsampler;
52#ifndef GLUP_NO_TEXTURE_3D
53uniform sampler3D texture3Dsampler;
54#endif
55
56// TODO:
57// requires
58// #version 140 or
59// #extension GL_EXT_gpu_shader4 enable
60// uniform samplerBuffer texturePrimitiveFiltersampler;