From 874906bedfc224338a62a2538b975148aeb2fbde Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Wed, 18 Jan 2023 10:04:51 -0800 Subject: [PATCH] Replace 'light_source_position' with 'light_position' --- manimlib/shaders/textured_surface/frag.glsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manimlib/shaders/textured_surface/frag.glsl b/manimlib/shaders/textured_surface/frag.glsl index 7d8010e6..5c4a54a6 100644 --- a/manimlib/shaders/textured_surface/frag.glsl +++ b/manimlib/shaders/textured_surface/frag.glsl @@ -20,7 +20,7 @@ void main() { if(num_textures == 2.0){ vec4 dark_color = texture(DarkTexture, v_im_coords); float dp = dot( - normalize(light_source_position - v_point), + normalize(light_position - v_point), normalize(v_normal) ); float alpha = smoothstep(-dark_shift, dark_shift, dp);