# Materials: How to use a Panner with a LinearGradient?

**URL:** <https://forums.unrealengine.com/t/materials-how-to-use-a-panner-with-a-lineargradient/480254>\
**Category:** Rendering\
**Tags:** panner, unreal-engine, question\
**Created:** [March 14, 2021, 3:08am UTC](https://forums.unrealengine.com/t/materials-how-to-use-a-panner-with-a-lineargradient/480254 "2021-03-14T03:08:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hypersapien](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hypersapien](https://forums.unrealengine.com/u/hypersapien)\
**Post date:** [March 14, 2021, 3:08am UTC](https://forums.unrealengine.com/t/materials-how-to-use-a-panner-with-a-lineargradient/480254/1 "2021-03-14T03:08:07Z")

</div>

Hello-

So I know how to connect a Panner Node to a Texture Sample to get it to animate horizontally/vertically, but how would I use a Panner to do the same thing to a LinearGradient?

Essentially I want to animate a gradient procedurally, without having to import a texture map of a plain gradient, and I just cant think of what that node network looks like.

Thanks for your time.

---

<div class="post-metadata">

**Author:** ![hypersapien](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hypersapien](https://forums.unrealengine.com/u/hypersapien)\
**Post date:** [March 14, 2021, 4:25am UTC](https://forums.unrealengine.com/t/materials-how-to-use-a-panner-with-a-lineargradient/480254/2 "2021-03-14T04:25:54Z")

</div>

This might not be the best way to do it, but I did find A way to do it

 ![332395-gradient-pan.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/6/c/b6c0541985451c8a4f493b218ce7238cdf5e160e.jpeg)

---

<div class="post-metadata">

**Author:** ![hypersapien](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hypersapien](https://forums.unrealengine.com/u/hypersapien)\
**Post date:** [March 15, 2021, 4:09am UTC](https://forums.unrealengine.com/t/materials-how-to-use-a-panner-with-a-lineargradient/480254/3 "2021-03-15T04:09:24Z")

</div>

Un-answering this question, the method I posted above only works if the gradient you are using is linear, from 0 to 1 with no curves.

---

<div class="post-metadata">

**Author:** ![error406](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@error406](https://forums.unrealengine.com/u/error406)\
**Post date:** [April 18, 2024, 1:05pm UTC](https://forums.unrealengine.com/t/materials-how-to-use-a-panner-with-a-lineargradient/480254/4 "2024-04-18T13:05:19Z")

</div>

Thanks! this works great
