Hi,
I am trying to assign ambientTexture but it doesn’t work, here is PG
https://playground.babylonjs.com/#MZMS1C#26
But when I upload my gltf on https://sandbox.babylonjs.com and upload ambient image manually by setting ambient texture property of material on sandbox, it works
what am I missing?
Thanks
You need an environment texture for your AO maps to have a visible impact:
https://playground.babylonjs.com/#MZMS1C#27
Note that the effect is subtle but still visible:
First picture is with AO texture, second one without (I have deleted the ambient texture with the inspector).
Uploading the texture by hand in the inspector does not produce the same result because in the glb file the texture is Y inverted:
But when you upload a texture manually through the inspector it is not:
2 Likes
ah you are a life savior, Thank you