mirror of
https://github.com/3b1b/manim.git
synced 2025-09-01 00:48:45 +00:00
Replace 'light_source_position' with 'light_position'
This commit is contained in:
parent
0b72bc5d08
commit
874906bedf
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ void main() {
|
||||||
if(num_textures == 2.0){
|
if(num_textures == 2.0){
|
||||||
vec4 dark_color = texture(DarkTexture, v_im_coords);
|
vec4 dark_color = texture(DarkTexture, v_im_coords);
|
||||||
float dp = dot(
|
float dp = dot(
|
||||||
normalize(light_source_position - v_point),
|
normalize(light_position - v_point),
|
||||||
normalize(v_normal)
|
normalize(v_normal)
|
||||||
);
|
);
|
||||||
float alpha = smoothstep(-dark_shift, dark_shift, dp);
|
float alpha = smoothstep(-dark_shift, dark_shift, dp);
|
||||||
|
|
Loading…
Add table
Reference in a new issue