Hi,
I am a new Amplify Shader Editor user. I am trying to use the rotator node but I don't want it to animate at all and I want to use it to rotate a texture to an arbitrary value. Is this possible?
Thanks
mdaday
BDub wrote:Thanks for the tip! I am trying to rotate a texture but at the same time keeping the tiling/offset because it is used as a grid for a plane. Is there a way to do this? The rotator passes in a UV and according to the documentation for Texture Sample, this overrides the texture tiling and offset parameters.
BDub wrote:That worked brilliantly!! Thanks for the quick reply (and the awesome asset!).
Vector4 newRotatorAnchor = new Vector4(
newTextureScale.x/2 + newTextureOffset.x,
newTextureScale.y/2 + newTextureOffset.y,
0f,
0f
);
mat.SetVector("_RotatorAnchor", newRotatorAnchor);
Users browsing this forum: Google [Bot] and 8 guests