]> git.tdb.fi Git - libs/gl.git/blobdiff - shaderlib/singlepass.glsl
Rename Pipeline to Sequence
[libs/gl.git] / shaderlib / singlepass.glsl
index ff421ea0287ccfabeacdf651eae590b719c573ac..eef6a5322aabed050dbfa6272a2337d7fd09bfd1 100644 (file)
@@ -1,3 +1,4 @@
+// Deprecated; use phong.glsl instead.
 import msp_interface;
 
 const bool use_vertex_color = false;
@@ -71,7 +72,7 @@ vec3 get_normal_sample()
 
 vec4 get_environment_sample(vec3 direction)
 {
-       return texture(environment, direction);
+       return texture(environment_map, direction);
 }
 
 vec3 normal;
@@ -79,7 +80,7 @@ vec4 diffuse_sample;
 
 vec3 singlepass_lighting()
 {
-       float shadow_sample = texture(shadow, shadow_coord);
+       float shadow_sample = texture(shadow_map, shadow_coord);
        float shadow_intensity = mix(1.0, shadow_sample, shadow_darkness);
 
        vec3 ambient_light = ambient_color.rgb;