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);