Search the Community
Showing results for tags 'environmenttexture'.
Found 3 results
Hello everyone, Trying to change scene environment textures smoothly with some kind of 'fade-in-out' effect rather than a hard toggle. Please consider this PG: https://playground.babylonjs.com/#26LZLL When the buttons are clicked, the environment texture is toggled between two .env maps. Is it possible to make the toggle more smooth, so it is more like a 'transition' than a 'snap'? Even a simple overlay of the two maps is ok. Hope someone can point me to the right direction. Thanks a lot! PS: Those handy test spheres in the PG are kindly provided by @PatrickRyan
Hello, I have problems casting shadows on objects that have PBR material and environmentTexture. I don't know how to dim the light emitted by the environmentTexture, or even better, make the intensity of the reflection related to the lights of the scene. Since shadows are the areas on the objects where there is no light, and the reflection of the environment texture is not affected by the lights, I can't get shadows on the object. Please, check the following example. http://www.babylonjs-playground.com/#BCHEUP There is a barely visible shadow on the PBR ball, from the torus. My questions are: 1) How can I make the ball dim/brighten according to the lights of the scene to some extend. 2) How can I change the intensity of the light of the environment texture, so that I can change the "intensity" of the reflected light of the ball, regardless of the surrounding lights? So that I can control how much the lights of the scene affect the brightness of the object. Thanks in advance!