Hey @yang_liu, is that a question, or just an observation?
Want to show us a demo? Or explain what you see?
I’m implementing the function of changing texture on materials. Because the same texture will be associated with multiple materials, it’s difficult to create a new texture and reassign it. So I want to update the resource file of texture using the updateURL method, but I find that the effect of using the updateURL method is different from that of directly initializing a new cubeTexture, the sphere shows different reflections . Thank you!
Seems like a bug, @sebavan - am I missing something?
So, it actually works as intented. You need to specify the gamma space you work in: https://www.babylonjs-playground.com/#FEEK7G#98
It is normally done in the first createFromPrefiltered… for you but not calling it first forces you to do so manually.
Oh I see you want to update prefiltered textures let me have a look, not sure it is supported.
PR is in the fix will be in the next nightly Fix Prefiltered UpdateURL by sebavan · Pull Request #7340 · BabylonJS/Babylon.js · GitHub
You ll need to specify that you update with a prefiltered texture in the update function as we can not infer it.