# ??How to Blur a TextureParameter??

**URL:** <https://forums.unrealengine.com/t/how-to-blur-a-textureparameter/440109>\
**Category:** Rendering\
**Tags:** unreal-engine, blur, custom, question\
**Created:** [December 25, 2018, 7:03pm UTC](https://forums.unrealengine.com/t/how-to-blur-a-textureparameter/440109 "2018-12-25T19:03:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![marvelmaster](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@marvelmaster](https://forums.unrealengine.com/u/marvelmaster)\
**Post date:** [December 25, 2018, 7:03pm UTC](https://forums.unrealengine.com/t/how-to-blur-a-textureparameter/440109/1 "2018-12-25T19:03:10Z")

</div>

Is there any way to blur a texture parameter in material editor?  
I know that spiral blur can blur TextureObjects.  
But I need my texture to be a parameter but that can not be plugged into the sprial blur node ☹

 ![263319-nowork.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/6/8/668de840086830af89e3cbf7066cd5034c4597d4.jpeg)

---

<div class="post-metadata">

**Author:** ![redbox](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@redbox](https://forums.unrealengine.com/u/redbox)\
**Post date:** [December 25, 2018, 8:27pm UTC](https://forums.unrealengine.com/t/how-to-blur-a-textureparameter/440109/2 "2018-12-25T20:27:22Z")

</div>

SpiralBlur function requires TextureObject to sample from, but if you want to change it in material instance, you can copy all the nodes from that function into material itself.

And I want to ask you - are you sure you need spiral blur? You can also blur texture with custom hlsl code.

---

<div class="post-metadata">

**Author:** ![marvelmaster](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@marvelmaster](https://forums.unrealengine.com/u/marvelmaster)\
**Post date:** [December 26, 2018, 1:39pm UTC](https://forums.unrealengine.com/t/how-to-blur-a-textureparameter/440109/3 "2018-12-26T13:39:37Z")

</div>

This does not work because inside spiral blur is already custom hlsl code ☹  
And the “Tex” does only read texture object and I Dont know how to solve this.

 ![263372-code.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/0/a/80a00cd0e3ee352a75b30c7a5ba2cb047015e545.jpeg)

I now ended up with sampling my texture by a specific offset.  
If anybody knows how to write this in hlsl code please tell me.

 ![263370-offset.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/f/0/1f07800239333365fd757c9518b90852fd57bff2.jpeg)

and the result if following

 ![263371-result.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/0/1/10149648b15298dba5ec0132a3dff29abe0f8617.jpeg)

---

<div class="post-metadata">

**Author:** ![KingMango1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KingMango1](https://forums.unrealengine.com/u/KingMango1)\
**Post date:** [December 27, 2018, 2:12am UTC](https://forums.unrealengine.com/t/how-to-blur-a-textureparameter/440109/4 "2018-12-27T02:12:10Z")

</div>

try making a material function with a texture sample parameter in it to use instead of the TextureObject

---

<div class="post-metadata">

**Author:** ![Nevets](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nevets/32/1068924_2.png) [@Nevets](https://forums.unrealengine.com/u/Nevets)\
**Post date:** [March 12, 2023, 11:06am UTC](https://forums.unrealengine.com/t/how-to-blur-a-textureparameter/440109/5 "2023-03-12T11:06:20Z")

</div>

1st of all, no you cannot do that.

There’s a basic understanding there:

A Tex Object is actually a “database” of pixels, if you want to do something like blur, you need more that one pixel, The “database” contains all pixel data that you need to do this. That’s why the SpiralBlur function need the full pack of pixels.

But a tex sampler is just a “function” which only return one pixel of data based on the UV input. (UVs are like “address” of data in the “database”.) So it wont give you data of the nearby pixels.

Therefore functions like SpiralBlur and NormalfromHeight demands a tex object for input, not a tex sampler. tex sampler is almost equals to a vector 4 constant.

If you need to modify the function, you can always copy the source code and modify it to whatever you need. Like a “Normal from RVT Heightmap”.
