Changing reflectionTexture to probe then revert causes inverted reflectionTexture

I was trying to switch the reflectionTexture for the material and I found out that after I change the reflectionTexture to probe’s cubeTexture and then change it back, the reflectionTexture was inverted in y axis.
I’ve used spector.js to went through the shader inputs and it was absolutely the same if I didn’t make any mistakes. I also compared the properties of the texture and the material, but they also makes no difference.
Changing the material to another material and then change it back will fix the problem, but not for my situation.

This PR will fix the problem:

3 Likes