# Ray traced translucency breaks eye occlusion shader

**URL:** <https://forums.unrealengine.com/t/ray-traced-translucency-breaks-eye-occlusion-shader/129906>\
**Category:** Rendering\
**Tags:** unreal-engine\
**Created:** [August 14, 2019, 3:42pm UTC](https://forums.unrealengine.com/t/ray-traced-translucency-breaks-eye-occlusion-shader/129906 "2019-08-14T15:42:32Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![The\_Distiller](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@The\_Distiller](https://forums.unrealengine.com/u/The_Distiller)\
**Post date:** [August 14, 2019, 3:42pm UTC](https://forums.unrealengine.com/t/ray-traced-translucency-breaks-eye-occlusion-shader/129906/1 "2019-08-14T15:42:32Z")

</div>

I’m aware that real-time ray tracing is still in beta, still wanted to bring this issue to the devs attention. As the title says, ray traced translucency breaks the eye occlusion shader. IOR is also wrong. Which I found is a general problem. It’d be nice to have control over it in the material.

 ![eye_occlusion_broken.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/a/2/a2f25ca19fc239f722f9fe05c5c0bd536e90010d.jpeg)

---

<div class="post-metadata">

**Author:** ![The\_Distiller](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@The\_Distiller](https://forums.unrealengine.com/u/The_Distiller)\
**Post date:** [September 10, 2019, 10:07pm UTC](https://forums.unrealengine.com/t/ray-traced-translucency-breaks-eye-occlusion-shader/129906/2 "2019-09-10T22:07:19Z")

</div>

@Fussybucket: Any ideas?

---

<div class="post-metadata">

**Author:** ![shipo](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/shipo/32/546495_2.png) [@shipo](https://forums.unrealengine.com/u/shipo)\
**Post date:** [September 11, 2019, 2:58pm UTC](https://forums.unrealengine.com/t/ray-traced-translucency-breaks-eye-occlusion-shader/129906/3 "2019-09-11T14:58:07Z")

</div>

Try change “Max.Refraction Rays” to seven.

---

<div class="post-metadata">

**Author:** ![The\_Distiller](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@The\_Distiller](https://forums.unrealengine.com/u/The_Distiller)\
**Post date:** [September 11, 2019, 6:05pm UTC](https://forums.unrealengine.com/t/ray-traced-translucency-breaks-eye-occlusion-shader/129906/4 "2019-09-11T18:05:44Z")

</div>

I already tried upping the Max.Refraction Rays to 8 or even higher that’s not the issue.

---

<div class="post-metadata">

**Author:** ![MacDonald82](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MacDonald82](https://forums.unrealengine.com/u/MacDonald82)\
**Post date:** [January 30, 2020, 7:45pm UTC](https://forums.unrealengine.com/t/ray-traced-translucency-breaks-eye-occlusion-shader/129906/5 "2020-01-30T19:45:36Z")

</div>

Dunno if you guys figured this out yet, I found that turning off “Cast Raytraced Shadows” in the master material sorted it for me.

---

<div class="post-metadata">

**Author:** ![The\_Distiller](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@The\_Distiller](https://forums.unrealengine.com/u/The_Distiller)\
**Post date:** [January 31, 2020, 12:35am UTC](https://forums.unrealengine.com/t/ray-traced-translucency-breaks-eye-occlusion-shader/129906/6 "2020-01-31T00:35:42Z")

</div>

Unfortunately not working, that option is actually off by default in the 4.24 version of the material.

---

<div class="post-metadata">

**Author:** ![MostHost\_LA](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mosthost_la/32/907035_2.png) [@MostHost\_LA](https://forums.unrealengine.com/u/MostHost_LA)\
**Post date:** [January 31, 2020, 12:51am UTC](https://forums.unrealengine.com/t/ray-traced-translucency-breaks-eye-occlusion-shader/129906/7 "2020-01-31T00:51:23Z")

</div>

If you need it to work, toss it into the forward shader so it doesn’t use ray tracing.

if you are just bringing up the fact it doesn’t work correctly…  
yes. It’s been an issue reported numerous times on here.  
The last topic I remember on it had an issue tracker number - if you can spot it you should log in and vote on it.

As far as end result, you would really have to look up close to notice the difference on this tiny detail between ray traced and not raytraced - were it not for the shadowing.  
And if I remember correctly, it is an issue with the shadow.  
the mesh is causing the shadow despite being translucent, causing the eye area to appear black.

If you could just get the material not to cast any shadow you should be able to get it to work with raytracing as well. In theory, based on what I remember at least. (Despite the fact you are saying otherwise, perhaps the instance is set to use it?)

Also, the tear duct and the eye both have a different transparent material instance. I guess it’s not the eye, but an occlusion mesh on top of it that makes it glossy.  
It seems like one is working fine - I would review the settings on both.

---

<div class="post-metadata">

**Author:** ![The\_Distiller](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@The\_Distiller](https://forums.unrealengine.com/u/The_Distiller)\
**Post date:** [January 31, 2020, 3:51pm UTC](https://forums.unrealengine.com/t/ray-traced-translucency-breaks-eye-occlusion-shader/129906/8 "2020-01-31T15:51:20Z")

</div>

That one other thread on the topic didn’t have an issue tracker but I filed a bug report a couple days ago:

> **[The Unreal Engine Issues and Bug Tracker](https://issues.unrealengine.com/issue/UE-87521)**
>
> Welcome to the Unreal Engine Issue and Bug Tracker. You can check the status of an issue and search for existing bugs. See latest bug fixes too.

I already tried changing the material to opaque and forward, to no avail either. The instance is using the same settings as well.

Since it now reported, let’s hope it’ll be fixed sometime in the near future.

---

<div class="post-metadata">

**Author:** ![nfuchs](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nfuchs/32/642762_2.png) [@nfuchs](https://forums.unrealengine.com/u/nfuchs)\
**Post date:** [April 30, 2024, 8:33am UTC](https://forums.unrealengine.com/t/ray-traced-translucency-breaks-eye-occlusion-shader/129906/9 "2024-04-30T08:33:30Z")

</div>

Really? Four years passed and it is still not solved? 🤦‍♂️

---

<div class="post-metadata">

**Author:** ![Arkiras](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/arkiras/32/1008648_2.png) [@Arkiras](https://forums.unrealengine.com/u/Arkiras)\
**Post date:** [April 30, 2024, 10:46pm UTC](https://forums.unrealengine.com/t/ray-traced-translucency-breaks-eye-occlusion-shader/129906/10 "2024-04-30T22:46:05Z")

</div>

And it almost certainly never will be fixed, because Epic intends for Lumen to be the future of Unreal’s raytraced translucency which requires the translucency method be set to raster.

---

<div class="post-metadata">

**Author:** ![nfuchs](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nfuchs/32/642762_2.png) [@nfuchs](https://forums.unrealengine.com/u/nfuchs)\
**Post date:** [May 1, 2024, 7:38am UTC](https://forums.unrealengine.com/t/ray-traced-translucency-breaks-eye-occlusion-shader/129906/11 "2024-05-01T07:38:16Z")

</div>

In that case, would be nice to know how to make the other issues disappear and look like actual raytrace.  
Like for example if a character is fully translucent (maybe glass) and you rotate it, you can’t decide if the arm is behind the body or not, looks messed up…  
I’m not tech dude, but I’d think an occlusion material would be easier to fix than this sorting problem.
