I’m having a case, where I might need to load an environment skybox after some models with PBR Material applied to them have already been loaded and added to the scene. In this case the reflection of the materials is black.
I guess I need to update some material settings by myself in this case, but I cant figure out which and how. Maybe anyone has a pointer?
Example PG: Babylon.js Playground
Changing the value in setTimeout to 0 makes the reflection texture appear
In the Playground you linked, I see the reflection as soon as the default environment is created even if I turn setTimeout up to 1000. However, if you need to set the reflection texture manually, I believe you can just assign the texture you want to the PBRMaterial's reflectionTexture property. Does that work for your scenario?
Interesting. It works in both v4 and v5 for me on Chromium-based Edge, but I repro exactly what you described in Firefox. @sebavan, do you know if this is a bug?