Here not obviously apply reflectionTexture to material of BoomBox but reflections works fine. Where is magic?
Welcome to the forum !!!
By default and for convenience all refelections in a scene can use scene.environmentTexture as it makes sense in most of the scene to rely on the same ref for all the meshes.
scene.createDefaultSkybox also for consistency will by default fill scene.envirionmentTexture to the same texture than the skybox.
Both explanations coupled ends up in a pretty short code where you can see ref in the models.
I imported meshes from gltf with pbr material into my scene and reflections not work in this case. So I write
model.material.reflectionTexture = new BABYLON.EquiRectangularCubeTexture(.... Is it right way for use reflection texture?
it would be better to use scene.environmentTexture = … before importing your file.
Also you would better use a preprocessed env file to see an accurate roughness: Use a HDR environment (for PBR) - Babylon.js Documentation
Of course =)
Does exist way for converting equirectangular texture to *.env like in your link?
And it would be good way considering that I need use hight-res reflections? I doing viewer for models what have 100% reflectness surface and whole feature of scene exactly in reflections.
Seems like I found it in section “Creating a compressed environment texture”. Will read it detail