mixofo
1
Hello , please i dont find how to get Lighting and Shadows from HDR Texture
For normal light i use this command , and it is work
var shadowGenerator = new BABYLON.ShadowGenerator(1024,light);
But when i want shadows and light from HDR i use this command and it isnt work
var shadowGenerator = new BABYLON.ShadowGenerator(1024,hdrTexture);
Thanks
sebavan
2
You can not cast shadows from hdr textures. you would need to bake them in a light maps.
This would be too slow to compute in real time.
sebavan
3
In Webgl (cause with RTX now it is getting there
)
1 Like
mixofo
4
So Hdrtexture is just for reflexion ?
And why there is Skybox and HdrTexture if skybox can also give reflexion for PBR materials ?
Thanx
sebavan
5
The skybox does not provide the reflection itslef. It only displays it in the background.
The materials and the skybox actually share the textures but use a different coordinate mapping.
mixofo
6
Hi , this exemple show that we can have reflection from skybox without HDR
https://www.babylonjs-playground.com/#RNBKQ#8
I am missing something ?
Thanks
I can not be use with pbr material, or the roughness will be wrong