# Set Cubemap Blend in SkyLight and reflections on transluscent materials

**URL:** <https://forums.unrealengine.com/t/set-cubemap-blend-in-skylight-and-reflections-on-transluscent-materials/137795>\
**Category:** Rendering\
**Tags:** unreal-engine\
**Created:** [February 7, 2020, 9:43pm UTC](https://forums.unrealengine.com/t/set-cubemap-blend-in-skylight-and-reflections-on-transluscent-materials/137795 "2020-02-07T21:43:40Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Felkroth](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Felkroth](https://forums.unrealengine.com/u/Felkroth)\
**Post date:** [May 14, 2020, 9:08pm UTC](https://forums.unrealengine.com/t/set-cubemap-blend-in-skylight-and-reflections-on-transluscent-materials/137795/3 "2020-05-14T21:08:08Z")

</div>

Hey,  
I actually solved this for a similar use case myself earlier and just happened to bump into this thread while searching for a solution to something else entirely.

My fix to this was changing one line in shader code:

In “\Engine\Shaders\Private\ReflectionEnvironmentComposite.ush” find the following:

```auto

#if REFLECTION_COMPOSITE_SUPPORT_SKYLIGHT_BLEND
   float3 SkyLighting = GetSkyLightReflectionSupportingBlend(RayDirection, Roughness, SkyAverageBrightness);
#else
   float3 SkyLighting = GetSkyLightReflection(RayDirection, Roughness, SkyAverageBrightness);
#endif

```

…and change the lower function (after ‘else’) to also support blending. ( GetSkyLightReflection() → GetSkyLightReflectionSupportingBlend() )

The shader code is recompiled when you restart the editor and load your project or run “RecompileShaders changed” console command in game. The compile might take a while obviously so expect a short freeze if you do it with the console command.

I haven’t tested this change enough to know if it has any serious drawbacks apart from the minor performance effect. After all, the blend is probably not supported for a reason such as not being supported on consoles or something like that so use this with that in mind!

Hope this helps!

---

_[View the full topic](https://forums.unrealengine.com/t/set-cubemap-blend-in-skylight-and-reflections-on-transluscent-materials/137795)._
