# Camera Position Issues

**URL:** <https://forums.unrealengine.com/t/camera-position-issues/69408>\
**Category:** Rendering\
**Tags:** unreal-engine\
**Created:** [July 20, 2016, 1:07am UTC](https://forums.unrealengine.com/t/camera-position-issues/69408 "2016-07-20T01:07:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Poly\_Ferret](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Poly\_Ferret](https://forums.unrealengine.com/u/Poly_Ferret)\
**Post date:** [July 20, 2016, 1:07am UTC](https://forums.unrealengine.com/t/camera-position-issues/69408/1 "2016-07-20T01:07:36Z")

</div>

Hey guys,

Maybe some of you gurus can help me here. I’m still relatively new to UE4 and I really want to get an understanding for building materials. So my latest problem is the Camera position node. I’m trying to create a shader that fades to something else when you get closer. I know there is a camera fade node but I want to build one as an exercise. For some reason, despite the camera position being use as an alpha, Im getting colors I shouldn’t be getting. Here is a screenshot of whats goin on.

Thanks

---

<div class="post-metadata">

**Author:** ![Poly\_Ferret](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Poly\_Ferret](https://forums.unrealengine.com/u/Poly_Ferret)\
**Post date:** [July 22, 2016, 5:36am UTC](https://forums.unrealengine.com/t/camera-position-issues/69408/2 "2016-07-22T05:36:23Z")

</div>

Nobody knows, huh? Is this a bug?

---

<div class="post-metadata">

**Author:** ![xnihil0zer0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@xnihil0zer0](https://forums.unrealengine.com/u/xnihil0zer0)\
**Post date:** [July 23, 2016, 12:03am UTC](https://forums.unrealengine.com/t/camera-position-issues/69408/3 "2016-07-23T00:03:01Z")

</div>

CameraPosition is a float3. It’s where you camera is in worldspace, not the scalar distance between the surface and the camera. For that you want Distance(CameraPosition,WorldPosition).
