Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Alternative for shadow darkness in ThreeJS

Now that shadow darkness is removed in r74 of Three.js, what alternative is there to still not make the shadows that dark? The default value is literally pitch black and there's no way to change it anymore.

like image 355
user1663544 Avatar asked Feb 06 '16 21:02

user1663544


1 Answers

Since shadow darkness has been removed, to adjust shadow intensity you need to use ambient light. If no ambient light exists yet, make sure you add one to your scene. Then you adjust the intensity of your ambient and spotlights.

like image 103
salihcenap Avatar answered Oct 01 '22 06:10

salihcenap