# Directional Light not occluded in Single Layer Water material

**URL:** <https://forums.unrealengine.com/t/directional-light-not-occluded-in-single-layer-water-material/2232436>\
**Category:** Rendering\
**Tags:** unreal-engine, question\
**Created:** [December 19, 2024, 5:53pm UTC](https://forums.unrealengine.com/t/directional-light-not-occluded-in-single-layer-water-material/2232436 "2024-12-19T17:53:47Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![BananableOffense](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BananableOffense](https://forums.unrealengine.com/u/BananableOffense)\
**Post date:** [December 19, 2024, 6:29pm UTC](https://forums.unrealengine.com/t/directional-light-not-occluded-in-single-layer-water-material/2232436/2 "2024-12-19T18:29:26Z")

</div>

> [@Single Layer Water - Specular reflection show "through" objects](https://forums.unrealengine.com/t/single-layer-water-specular-reflection-show-through-objects/763620/7):
>
> It was a limitation before, but works now if you use Lumen and NOT ray traced shadows. Also, these two console commands helps the quality significantly: r.Water.SingleLayer.ShadersSupportVSMFiltering=1 r.Water.SingleLayer.VSMFiltering=1

Specular occlusion doesn’t appear to work on certain materials when using ray traced shadows. Perhaps there is a CVAR to fix it, but the easiest thing is to simply switch to virtual shadow maps for your sun instead of ray traced shadows.

Raytraced:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/8/8/f885db11584d08d99ab14ed6f256fca215b2b494.jpeg)  
VSM:  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/c/d/9cd201fc7229e43bd8d13f2674e7e47dc6dcfa20.jpeg)

---

_[View the full topic](https://forums.unrealengine.com/t/directional-light-not-occluded-in-single-layer-water-material/2232436)._
