# Dynamic force field - How to get location for shader?

**URL:** <https://forums.unrealengine.com/t/dynamic-force-field-how-to-get-location-for-shader/17230>\
**Category:** Rendering\
**Tags:** unreal-engine\
**Created:** [December 15, 2014, 4:25pm UTC](https://forums.unrealengine.com/t/dynamic-force-field-how-to-get-location-for-shader/17230 "2014-12-15T16:25:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_dd088515](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_dd088515](https://forums.unrealengine.com/u/anonymous_user_dd088515)\
**Post date:** [December 15, 2014, 4:25pm UTC](https://forums.unrealengine.com/t/dynamic-force-field-how-to-get-location-for-shader/17230/1 "2014-12-15T16:25:25Z")

</div>

Hello,

I was wondering how I could go about adding dynamic functionality to a shader. For instance, let’s say I wanted a force field shader or a puddle of water that would create a flash or ripple based on a collision location? So I could throw the force field shader on, say, a sphere and then shoot the default weapon at it and display a ripple/flash everywhere the projectiles hit.

Can anyone point me in the right direction?

Thanks!
