# Can't find a node for rotating world aligned texture

**URL:** <https://forums.unrealengine.com/t/cant-find-a-node-for-rotating-world-aligned-texture/328583>\
**Category:** Rendering\
**Tags:** rotation, unreal-engine, question\
**Created:** [August 13, 2015, 6:27pm UTC](https://forums.unrealengine.com/t/cant-find-a-node-for-rotating-world-aligned-texture/328583 "2015-08-13T18:27:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kresjah](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kresjah](https://forums.unrealengine.com/u/Kresjah)\
**Post date:** [August 13, 2015, 6:27pm UTC](https://forums.unrealengine.com/t/cant-find-a-node-for-rotating-world-aligned-texture/328583/1 "2015-08-13T18:27:52Z")

</div>

Hi!

I am working on a material function for a tiled floor/ceiling texture, which I intend to use as a master material to create instances from. All floors and ceilings in my project are 64x64, and as such it should not be too hard.

The problem I have is that upon applying it to a floor in my project I found that rotated by 180 degrees. Theoretically this shouldn’t be to hard to solve… had it not been using a WorldAlignedTexture node. If I had a TextureSample node, I should have been able to flip/rotate the UV there.

This is where it starts getting ugly. The WorldAlignedTexture node only accepts a Textured2D input, so I can’t plug a TextureSample into it. The TextureObject node which I have to use only has an output, so I can’t flip the UV at that point. Next, the texture output from the WorldAlignedTexture node apparently outputs a float value. I can’t plug that in to the Tex input on a TextureSample node in a material function, hence I can’t flip the UVs there. I’ve gotten the impression that the CustomRotator node would be a good choice for flipping/rotating my UV, but again, that actually requires a TextureSample node to plug in to since the inputs/output of CustomRotator are UVs only (as opposed to entire Texture objects).

Whilst I could theoretically rotate the texture in a graphics editing application (in my case, GIMP), I’m trying to avoid editing the source textures at all. How would I go about rotating the texture in my WorldAlignedMaterial?

## Current Material Function

 ![dQjogd0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/1/e/e1ed0320f63735808003e12f6fcdf866ddff6ed1.png)

## Notes

For the keen-eyed of you, I am using a very mildly modified version of the WorldAlignedMaterial (which I’ve placed within my project content and named MF\_WorldAlignedMaterial). The only modification I’ve made is following RyanB’s answer from this thread ([[Topics tagged unreal-engine & question](https://answers.unrealengine.com/questions/214950/nearest-texture-filtering-not-compatible-with-the.html)][2]) as my texture is supposed to be pixellated like it’s 1994 all over again. 😛

Also, the texture I’ve plugged into the Preview input of the Texture2D input node is a temporary one (and not the one I intend to use it on) to make it easier to see that I have gotten it rotated correctly.

---

<div class="post-metadata">

**Author:** ![Roel](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Roel](https://forums.unrealengine.com/u/Roel)\
**Post date:** [September 3, 2015, 1:48pm UTC](https://forums.unrealengine.com/t/cant-find-a-node-for-rotating-world-aligned-texture/328583/2 "2015-09-03T13:48:11Z")

</div>

If you set it up yourself it is easy to add. Because the rotator node just works for me:

 ![56988-materialexample.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/6/3/b630014cf1cb0da73444c55f611204b4c6678b9e.jpeg)
