i have many different texture in a draw call so i use texture atlas
but if i want some of those textures have different rotation,what could i do?
Help! Thanks!
i have many different texture in a draw call so i use texture atlas
but if i want some of those textures have different rotation,what could i do?
Help! Thanks!
This is a really bizarre problem. Short of just rotating the quad like Irreversible said, maybe you can just apply a rotation matrix to your quad's texture coordinates?
I'd opt for texture matrix manipulation myself. Preventing the surrounding textures in the atlas from intruding on the rastered poly is something else tho.
Any object that is texture mapped, can be rotated freely, without a slightest change in texture coordinates. That's how it works. Your only ever need to rotate a texture itself is when you want to somewhat animate it on all objects at the same time, without having to change the mapping.