# Change Skylight Intensity at Runtime

**URL:** <https://forums.unrealengine.com/t/change-skylight-intensity-at-runtime/460244>\
**Category:** Rendering\
**Tags:** skylight, Post-Processing, unreal-engine, lighting-problem, Blueprint, question\
**Created:** [January 6, 2020, 11:24am UTC](https://forums.unrealengine.com/t/change-skylight-intensity-at-runtime/460244 "2020-01-06T11:24:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![S3B3ST](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@S3B3ST](https://forums.unrealengine.com/u/S3B3ST)\
**Post date:** [January 6, 2020, 11:24am UTC](https://forums.unrealengine.com/t/change-skylight-intensity-at-runtime/460244/1 "2020-01-06T11:24:33Z")

</div>

Hey there!

I would like to be able to make a BoxCollision which works as a PostProcessVolume because the PostProcessVolume has missing Features:

If the Player walks into the Volume, I want to set the Skylight intensity to 0. Unfortunately with the AmbientCubemap Feature from the PostProcessVolume I only can make the Skylight Brighter, not darker.

![294881-ambiencubemap.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/c/a/0cab4ca24cd75e073fd0eb3e930b7cbf343da9e1.png)

So I need to make a Blueprint which does this job. But I want a soft transition like the Post Process Volume has.

![294882-blendradius.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/7/2/272472d7fb290bc0cc445741c200ebb2c1ebb0c7.png)

The Radius would be quite big, so only a timed delay for a soft transition wouldn’t work.

Would anyone know how to solve this problem?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [January 6, 2020, 12:12pm UTC](https://forums.unrealengine.com/t/change-skylight-intensity-at-runtime/460244/2 "2020-01-06T12:12:51Z")

</div>

What about a collision volume which measures the distance of the player to it’s center and adjusts the skylight accordingly?

So you can have a BP containing a collision volume which by default has tick turned off.

When the player overlaps, tick starts and the skylight intensity is adjusted in accordance with distance from center.

When the player stops overlapping, the skylight is set to normal and tick is turned off again.

---

<div class="post-metadata">

**Author:** ![S3B3ST](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@S3B3ST](https://forums.unrealengine.com/u/S3B3ST)\
**Post date:** [January 6, 2020, 5:32pm UTC](https://forums.unrealengine.com/t/change-skylight-intensity-at-runtime/460244/3 "2020-01-06T17:32:58Z")

</div>

That would be my last option because it would make everything in my level extremely complex…  
I want the Player to enter a location and the player should walk deeper into the location, I would have to place many blueprints, and of course, the Player would leave one blueprint and the settings shouldn’t get set back to default. Only when the Player leaves the complete location.

I am curious, what is the best (performant) way to activate Tick by overlap?  
Only using a branch to block the tick wouldn’t be too great performance-wise…

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [January 6, 2020, 6:28pm UTC](https://forums.unrealengine.com/t/change-skylight-intensity-at-runtime/460244/4 "2020-01-06T18:28:51Z")

</div>

Just start tick on overlap.

 ![294904-enable-tick.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/c/c/8cc957b5c6706962d9ea27637193d9552b524f3f.jpeg)

You don’t have to use tick, you could start a timer on overlap and kill it when the player leaves.

Each second ( for example ) the distance of the player from the center is measured and the skylight adjusted accordingly.

It’s easy to do and performant.

---

<div class="post-metadata">

**Author:** ![presto423](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@presto423](https://forums.unrealengine.com/u/presto423)\
**Post date:** [January 6, 2020, 10:07pm UTC](https://forums.unrealengine.com/t/change-skylight-intensity-at-runtime/460244/5 "2020-01-06T22:07:50Z")

</div>

Have you looked into Blendables yet? Using several post process volumes with the ‘distance from center’ basis of skylight intensity change, all of which overlap at specific extents to cover the whole location, would probably be easier than utilizing a tick operation or by-the-second calculation. The blendables are applicable to materials, so they could also be used to adjust some of the location’s post process settings along with the skylight intensity changing.

---

<div class="post-metadata">

**Author:** ![GrandAlchemist](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GrandAlchemist](https://forums.unrealengine.com/u/GrandAlchemist)\
**Post date:** [March 11, 2025, 8:44pm UTC](https://forums.unrealengine.com/t/change-skylight-intensity-at-runtime/460244/6 "2025-03-11T20:44:35Z")

</div>

I realize this is an old post, but could you go into more detail?

How would I use a blendable to adjust the skylight intensity at runtime?
