is it possible? I found in the forum that you can reflect a texture by using
renderer.material.maiTextureScale.x =-1;
but I would like to rotate a texture at 90 degrees.
I could create separate instances of the texture outside of unity rotated at 90, 180, 270 and use that but I would like to know if I am not missing some simple way of rotating a texture inside unity.
Daniel is correct in that rotation of a texture would probably be done by a shader. The Animation API example project actually has an example of this and a shader you could probably modify to get the desired result.
Digging up an old post I know, but I am trying the same sort of thing (rotating a material) and looked up the Animation API. It’s doing a similar thing to what I was trying to do in a custom shader, but unfortunately also has the same results of the material being rotated from the bottom left corner of a plane/face of cube. I need to rotate the material from the centre of the plane/cube face. Anyone know how I can do this, either a modification of above or altering a pivot point somehow?
I needed to rotate a windblown sand texture. I just copied it to Pain.Net, rotated the image 90dg and then brought it back to Unity. Works like a charm.