-
-struct MaterialParameters
-{
- vec4 ambient;
- vec4 diffuse;
- vec4 specular;
- float shininess;
-};
-
-struct ClipPlane
-{
- vec4 equation;
-};
-
-uniform mat4 eye_obj_matrix;
-uniform mat3 eye_obj_normal_matrix;
-uniform Transform
-{
- mat4 projection_matrix;
-};
-
-uniform Material
-{
- MaterialParameters material;
- float reflectivity;
-};
-
-uniform Lighting
-{
- // Declared as an array for compatibility reasons
- LightSourceParameters light_sources[1];
- vec4 ambient_color;
- vec4 sky_color;
- vec3 eye_zenith_dir;
- float horizon_limit;
- vec4 fog_color;
- float fog_density;
-};
-
-uniform sampler2D diffuse_map;
-uniform sampler2D normal_map;
-
-uniform sampler2DShadow shadow;
-uniform ShadowMap
-{
- float shadow_darkness;
- mat4 shd_eye_matrix;
-};
-
-uniform samplerCube environment;
-uniform EnvMap
-{
- mat3 env_eye_matrix;
-};
-
-const int max_clip_planes = 0;
-uniform Clipping