# Post Process texture that doesn't move with camera

**URL:** <https://forums.unrealengine.com/t/post-process-texture-that-doesnt-move-with-camera/338104>\
**Category:** Rendering\
**Tags:** Post-Processing, blendables, unreal-engine, Blueprint, question\
**Created:** [November 11, 2015, 8:05am UTC](https://forums.unrealengine.com/t/post-process-texture-that-doesnt-move-with-camera/338104 "2015-11-11T08:05:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![str-Luke](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@str-Luke](https://forums.unrealengine.com/u/str-Luke)\
**Post date:** [November 11, 2015, 8:05am UTC](https://forums.unrealengine.com/t/post-process-texture-that-doesnt-move-with-camera/338104/1 "2015-11-11T08:05:16Z")

</div>

Hello,

I’m trying to do a distant fog / smoke effect in one of my projects. I’m attempting to do this via a post process blendable. Generally it’s working well, but I cannot figure out how to do one specific thing.

The distant effect is driven by a texture based modification of the scene image. This is working very well until I rotate the camera, and the distant effect moves along with the rotation of the camera - breaking the effect entirely.

**Is there any way to map the texture or the coordinates of the texture to world space so that when I rotate the camera left or right, the texture itself is offset or moved left or right?**

I attempted to do this by getting the camera direction vector and distilling it down into a variable that could then be used for the time slot in a panner… and it almost works, but after spinning the camera 90 degrees it stops offsetting properly.

**What is the best way to get the rotation or direction of the camera entirely within the material, and distill it’s rotation down into a single number which I can then do things with?**

(Or if you can think of a better way to do this effect that doesn’t involve attaching a massive sphere to the player character, I would definitely appreciate the help)

Thank you for your time.

---

<div class="post-metadata">

**Author:** ![pylb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@pylb](https://forums.unrealengine.com/u/pylb)\
**Post date:** [November 11, 2015, 10:47am UTC](https://forums.unrealengine.com/t/post-process-texture-that-doesnt-move-with-camera/338104/2 "2015-11-11T10:47:58Z")

</div>

I believe there’s a material function called “TriplanarCameraVector” which can do this for you.

---

<div class="post-metadata">

**Author:** ![str-Luke](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@str-Luke](https://forums.unrealengine.com/u/str-Luke)\
**Post date:** [November 11, 2015, 8:26pm UTC](https://forums.unrealengine.com/t/post-process-texture-that-doesnt-move-with-camera/338104/3 "2015-11-11T20:26:42Z")

</div>

Absolutely exactly what I was looking for. Thank you very much!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_27ca9f66](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_27ca9f66](https://forums.unrealengine.com/u/anonymous_user_27ca9f66)\
**Post date:** [May 31, 2016, 12:04pm UTC](https://forums.unrealengine.com/t/post-process-texture-that-doesnt-move-with-camera/338104/4 "2016-05-31T12:04:02Z")

</div>

Hello everyone ! I found this post due to the fact that I ran into a similar problem. Could you guys leave a reply about how you managed to stop making the postprocess effect move with the camera ? I am trying to make an item highlight system using post process material but the highlight moves when I move the camera. How can I stop it ? Any help is greatly appreciated. Thank you !

---

<div class="post-metadata">

**Author:** ![str-Luke](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@str-Luke](https://forums.unrealengine.com/u/str-Luke)\
**Post date:** [May 31, 2016, 7:44pm UTC](https://forums.unrealengine.com/t/post-process-texture-that-doesnt-move-with-camera/338104/5 "2016-05-31T19:44:15Z")

</div>

We used the “TriplanarCameraVector” node in the post process material. This is a screenshot of the material we used in in: [http://i.imgur.com/S6p0Gaz.png](http://i.imgur.com/S6p0Gaz.png)

In our case, we we creating a form of noise effect, so we used the node twice with the same texture but different values, and then merged them together.
