Question by
ritamoreno · Feb 12, 2021 at 08:08 PM ·
rotationtextureshadersmatrix
Is it possible to change the offset of a texture based on another textures UV?
I am creating a program where I have a main skin texture and a tattoo texture placed over it. I am doing this using a shader. I have the tattoo on a different "TEXCOORD" because I created a rotation matrix for it. I now want to change the offset of the tattoo but I don't want it to move diagonally if the user chooses to have the tattoo at, lets say a 45 degree angle. I would like to change the offset in accordance to the main skin texture, which cannot be rotated. Is this possible? How can I go about it?
Comment