I have a non-square image which I use as a texture on a mesh.
I use the uScale and vScale property to set the aspect ratio so that the image is not distorted.
When I rotate the texture with wAng, I notice that the orientation of the scale does not change with the rotation.
For example…
I have an image which 2 x 1, so I calculate the aspect ratio as 2/1 or 2.
Then I set vScale to 2 so that the image is not distorted. This works fine.
When I rotate the texture 90 degrees, it is as if the uScale is now 2 instead of the vScale because it has not rotated along with the texture. This is the main problem.
How can I resolve this issue?