# Shader doesnt work.

**URL:** <https://forums.unrealengine.com/t/shader-doesnt-work/220793>\
**Category:** Rendering\
**Tags:** unreal-engine\
**Created:** [June 17, 2019, 7:49am UTC](https://forums.unrealengine.com/t/shader-doesnt-work/220793 "2019-06-17T07:49:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_b2722767](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b2722767](https://forums.unrealengine.com/u/anonymous_user_b2722767)\
**Post date:** [June 17, 2019, 7:49am UTC](https://forums.unrealengine.com/t/shader-doesnt-work/220793/1 "2019-06-17T07:49:21Z")

</div>

I made atmospheric scattering shader based on O Neil paper, but it doesn’t work as it should.  
When i close to it, it works fine.  
When I move away from it, it gradually decreases and disappears.  
Atmosphere changing size depending on camera position.  
What exactly could be the problem?
