# Tile a cropped texture in atlas/texture grid

**URL:** <https://forums.unrealengine.com/t/tile-a-cropped-texture-in-atlas-texture-grid/1393618>\
**Category:** Rendering\
**Tags:** unreal-engine, Rendering, question\
**Created:** [November 16, 2023, 12:11am UTC](https://forums.unrealengine.com/t/tile-a-cropped-texture-in-atlas-texture-grid/1393618 "2023-11-16T00:11:51Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![Keytotruth](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Keytotruth](https://forums.unrealengine.com/u/Keytotruth)\
**Post date:** [November 16, 2023, 2:42pm UTC](https://forums.unrealengine.com/t/tile-a-cropped-texture-in-atlas-texture-grid/1393618/12 "2023-11-16T14:42:43Z")

</div>

For those looking for a solution, do the following.

Create a new material function like in this image:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/a/0/0a08829217727d3098ff7e7dd7ead7868d4ee1a7.png)

Then use it to input the UVs to your texture. In the Material Function’s UVs, pass it an already tiled texture coordinate for the desired tiling of the subtexture.

Set your texture sample’s MipValueMode to Derivative and pass it a Tex Coord through the DDX and DDY nodes to the corresponding inputs in the texture sample.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/4/8/c48dbbcdd4331e049c8b0392c19b0450e606b3d2.png)

---

_[View the full topic](https://forums.unrealengine.com/t/tile-a-cropped-texture-in-atlas-texture-grid/1393618)._
