# Rotate the material shader relative to the camera view

**URL:** <https://forums.unrealengine.com/t/rotate-the-material-shader-relative-to-the-camera-view/482899>\
**Category:** Rendering\
**Tags:** Render, matrix, unreal-engine, shader, question\
**Created:** [May 4, 2021, 8:20pm UTC](https://forums.unrealengine.com/t/rotate-the-material-shader-relative-to-the-camera-view/482899 "2021-05-04T20:20:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![NoirMiller](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NoirMiller](https://forums.unrealengine.com/u/NoirMiller)\
**Post date:** [May 4, 2021, 8:20pm UTC](https://forums.unrealengine.com/t/rotate-the-material-shader-relative-to-the-camera-view/482899/1 "2021-05-04T20:20:08Z")

</div>

Hello everyone!

I have objects that I am looking at. When I approach the wall, it should cover the objects with the texture, creating the illusion of the wall extending. This is implemented here: [Wile E. Coyote Effect | Matt Stark’s Game Development Portfolio](https://matt.stark.scot/2019/11/06/wile-e-coyote-effect.html)  
But how do I do this in Unreal? I absolutely do not know the shader language in blueprints, but I really want to figure out how to make such a shader that displays a texture relative to the camera? Now I am at the stage where the texture is applied without mapping to the wall. What`s next?

Any additional code explanation would be great!

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [May 4, 2021, 9:44pm UTC](https://forums.unrealengine.com/t/rotate-the-material-shader-relative-to-the-camera-view/482899/2 "2021-05-04T21:44:39Z")

</div>

It’s a render target:

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/5/2/752e94c3db60e76032478b24146fafd09cb9940e.jpeg "Unreal Render Target & Scene Capture 2D") ](https://www.youtube.com/watch?v=a9iho861SlY)

---

<div class="post-metadata">

**Author:** ![NoirMiller](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NoirMiller](https://forums.unrealengine.com/u/NoirMiller)\
**Post date:** [May 4, 2021, 10:02pm UTC](https://forums.unrealengine.com/t/rotate-the-material-shader-relative-to-the-camera-view/482899/3 "2021-05-04T22:02:07Z")

</div>

It already used in the project, but I need the transformation for material, because it seems to be wrong like on the screen. I need to rotate it in the material (world offset? But how?)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [May 5, 2021, 9:20am UTC](https://forums.unrealengine.com/t/rotate-the-material-shader-relative-to-the-camera-view/482899/4 "2021-05-05T09:20:34Z")

</div>

I see. You don’t need to do anything to the material, you need to move the camera.
