# Excluding the sky from the outline shader results in thinner lines

**URL:** <https://forums.unrealengine.com/t/excluding-the-sky-from-the-outline-shader-results-in-thinner-lines/497821>\
**Category:** Rendering\
**Tags:** unreal-engine, Post-Process, UE4-27, question\
**Created:** [February 14, 2022, 8:21am UTC](https://forums.unrealengine.com/t/excluding-the-sky-from-the-outline-shader-results-in-thinner-lines/497821 "2022-02-14T08:21:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rmViper](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rmviper/32/88719_2.png) [@rmViper](https://forums.unrealengine.com/u/rmViper)\
**Post date:** [February 14, 2022, 8:21am UTC](https://forums.unrealengine.com/t/excluding-the-sky-from-the-outline-shader-results-in-thinner-lines/497821/1 "2022-02-14T08:21:13Z")

</div>

Hello, there!

I followed the Cel shading tutorial posted on the Unreal Engine channel a few years back. The outlines resulting from that method also affect the sky, so I used custom depth to exclude the sky from the shader.  
However it seems that in doing so, the outlines become thinner where objects intersect with the sky. Going through Google and Youtube, it seems none of the other tutorials have a way of stopping that from happening.

I also tried to check for distance from camera, but the result is the same.

Does anyone have an idea of how to stop this from happening?
