# Extrapolate clamped texture with fixed color

**URL:** <https://forums.unrealengine.com/t/extrapolate-clamped-texture-with-fixed-color/411014>\
**Category:** Rendering\
**Tags:** unreal-engine, clamp, question\
**Created:** [November 30, 2017, 5:51pm UTC](https://forums.unrealengine.com/t/extrapolate-clamped-texture-with-fixed-color/411014 "2017-11-30T17:51:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_04f32a061](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_04f32a061](https://forums.unrealengine.com/u/anonymous_user_04f32a061)\
**Post date:** [November 30, 2017, 5:51pm UTC](https://forums.unrealengine.com/t/extrapolate-clamped-texture-with-fixed-color/411014/1 "2017-11-30T17:51:12Z")

</div>

I want to set a small texture onto a large object, that only consists of one face. So I unwraped this face (in Blender) and scaled it up in the UV editor. The more I scale it up, the smaller the texture is on the object. (I hope it’s understandable: The unwrapped faces goes beyond the normal borders of the uv map.)

The problem is, that the pixels outside the texture are just continued from its border pixels, but I want them to be transparent (or any other color that I set).

 ![222049-plane-material.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/7/c/27cb1fd3973bd46391c9a13cb2c7c5489e32762f.jpeg)

 ![222050-plane-with-stopsign.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/6/9/b69b2aff0a64569c775e23b3732ffce3f0ac0a44.jpeg)

As you can see, the corners of the stop sign are already transparent, so most of the object is blue as desired, but it also touches the border and – depending on the LOD – either the very thin black or the bigger white border of the sign are extrapolated to the sides beyond the texture.

Please note that I disabled tiling in my texture asset by setting “X/Y-axis tiling method” to Clamp. You can find this option in the section “Texture” under Advanced.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_11ffaa72](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_11ffaa72](https://forums.unrealengine.com/u/anonymous_user_11ffaa72)\
**Post date:** [May 26, 2019, 7:31pm UTC](https://forums.unrealengine.com/t/extrapolate-clamped-texture-with-fixed-color/411014/2 "2019-05-26T19:31:42Z")

</div>

While you can achieve that by modifying the material, I would consider this:

- Scale down the stop sign in a texture editing program just a little(while keeping the texture size constant)
- Draw a narrow blue frame around the texture borders

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_04f32a061](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_04f32a061](https://forums.unrealengine.com/u/anonymous_user_04f32a061)\
**Post date:** [May 27, 2019, 12:33pm UTC](https://forums.unrealengine.com/t/extrapolate-clamped-texture-with-fixed-color/411014/3 "2019-05-27T12:33:13Z")

</div>

Well, nearly two years too late, but at least someone cares of my problems 🙂

My result:

 ![278122-solution.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/8/f/b8fe005722d6bab6b9682395cc8a9488d3265247.jpeg)

Looks like a hack, but you can easily define a frame in the material editor. Connecting the “Scale” parameter to the “Texture Scale” input node is not necessary, but let’s you scale the texture additionally.

---

<div class="post-metadata">

**Author:** ![fear6zero](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@fear6zero](https://forums.unrealengine.com/u/fear6zero)\
**Post date:** [February 25, 2025, 8:43pm UTC](https://forums.unrealengine.com/t/extrapolate-clamped-texture-with-fixed-color/411014/4 "2025-02-25T20:43:43Z")

</div>

Thank you bro but one question  
how to slide the texture on X and Y axis to get logo as centered?  
because the logo appears on surface on wrong direction

---

<div class="post-metadata">

**Author:** ![Ariel\_Gimenez](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ariel_gimenez/32/591990_2.png) [@Ariel\_Gimenez](https://forums.unrealengine.com/u/Ariel_Gimenez)\
**Post date:** [November 4, 2026, 3:05pm UTC](https://forums.unrealengine.com/t/extrapolate-clamped-texture-with-fixed-color/411014/5 "2026-11-04T15:05:26Z")

</div>

![This is the error: the texture gets stretched, especially if you use JPF.](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/c/d/0cd5a8b3da8977c4cdbd69bf16015275a6b77f64.png)

 ![We are looking for the scaleUVByCenter node.](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/e/7/6e7880d8e025b1fc2a07643cd8c7c379cbeade41.png)

 ![We use that knot to apply the clamp.](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/8/b/08b35fca49833e7b8b5956d275a8913d2c695034.png)

 ![applied over the texture, combined with color](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/1/4/914f148969bf9fa4429978e1912af129a11a634a.png)

 ![adding move, rotation, and scale](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/d/1/cd10c7385e2487ff4851ac2a9f335a0286170f42.png)

 ![complete shader](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/9/6/e9676866d48e2b91401ec17485292175281dc69f.png)

 ![CLAMP TEXTURE](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/8/a/78a2bd8a56cbcc532610b2792e5c60e66d4a8d12.png)
