An alternative to shadow darkness in Troika

Now that the dark darkness is being removed in r74 of Three.js, which alternative there still does not make the shadows dark? The default value is literally black, and there is no longer any way to change it.

+4
source share
1 answer

Since the shadow darkness has been removed to adjust the intensity of the shadow, you need to use ambient light. If there is no ambient lighting, make sure you add it to your scene. Then you adjust the intensity of the surrounding light and spotlights.

0
source

Source: https://habr.com/ru/post/1627603/


All Articles