X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=shaderlib%2Fsinglepass.glsl;h=eef6a5322aabed050dbfa6272a2337d7fd09bfd1;hb=dff7004fa078d55911664c0f513b5dc6c9449420;hp=ff421ea0287ccfabeacdf651eae590b719c573ac;hpb=3500f13f51dabadd2e7f06b81820936520cc8115;p=libs%2Fgl.git diff --git a/shaderlib/singlepass.glsl b/shaderlib/singlepass.glsl index ff421ea0..eef6a532 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; @@ -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;