X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=shaderlib%2Fsinglepass.glsl;fp=shaderlib%2Fsinglepass.glsl;h=2de3f6121c71255f4e4bb04a496951cc454bffe3;hb=5ca47579de51342ac3e8ecda2cbb9be2f8b4643a;hp=ff421ea0287ccfabeacdf651eae590b719c573ac;hpb=3500f13f51dabadd2e7f06b81820936520cc8115;p=libs%2Fgl.git diff --git a/shaderlib/singlepass.glsl b/shaderlib/singlepass.glsl index ff421ea0..2de3f612 100644 --- a/shaderlib/singlepass.glsl +++ b/shaderlib/singlepass.glsl @@ -1,3 +1,4 @@ +// Deprecated; use phong.glsl instead. import msp_interface; const bool use_vertex_color = false; @@ -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;