]> git.tdb.fi Git - libs/gl.git/blobdiff - shaderlib/msp_interface.glsl
Refactor vertex builders
[libs/gl.git] / shaderlib / msp_interface.glsl
index b1b887ea68a92b3f11a308d0895e503473cf8f61..e20e36dd555014087999c0ef86324f7f68b6a222 100644 (file)
@@ -5,15 +5,6 @@ struct LightSourceParameters
        vec4 specular;
 };
 
-struct BasicMaterialParameters
-{
-       vec4 diffuse;
-       vec4 specular;
-       vec4 emission;
-       float shininess;
-       float reflectivity;
-};
-
 struct ClipPlane
 {
        vec4 equation;
@@ -27,11 +18,6 @@ uniform Transform
        mat4 projection_matrix;
 };
 
-uniform BasicMaterial
-{
-       BasicMaterialParameters basic_material;
-};
-
 uniform Lighting
 {
        // Declared as an array for compatibility reasons
@@ -44,26 +30,7 @@ uniform Lighting
        float fog_density;
 };
 
-uniform sampler2D diffuse_map;
-uniform sampler2D specular_map;
-uniform sampler2D shininess_map;
-uniform sampler2D emission_map;
-uniform sampler2D normal_map;
-
-uniform sampler2DShadow shadow_map;
-uniform ShadowMap
-{
-       float shadow_darkness;
-       mat4 shd_eye_matrix;
-};
-
-uniform samplerCube environment;
-uniform EnvMap
-{
-       mat3 env_eye_matrix;
-};
-
-const int max_clip_planes = 0;
+layout(constant_id=auto) const int max_clip_planes = 0;
 uniform Clipping
 {
        ClipPlane clip_planes[max_clip_planes];