# Is it possible to get light intensity of each ray at run time?

**URL:** <https://forums.unrealengine.com/t/is-it-possible-to-get-light-intensity-of-each-ray-at-run-time/1420530>\
**Category:** Rendering\
**Tags:** unreal-engine, question\
**Created:** [November 25, 2023, 5:56pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-get-light-intensity-of-each-ray-at-run-time/1420530 "2023-11-25T17:56:53Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![SupportiveEntity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SupportiveEntity](https://forums.unrealengine.com/u/SupportiveEntity)\
**Post date:** [November 26, 2023, 8:36pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-get-light-intensity-of-each-ray-at-run-time/1420530/2 "2023-11-26T20:36:15Z")

</div>

Hey there @Nonlin! So it’d be quite the feat to check for light level, as this data is already GPU side, so the simple answer is that it’s a ton of effort and often best faked.

> [@Measure Brightness of Light on Actor](https://forums.unrealengine.com/t/measure-brightness-of-light-on-actor/461763/7):
>
> Trace from the character to the lightsource if the trace reaches the light then the character is lit, else it is in shadow. I’ve seen people trace from sockets attached to the character to get a better representation than using a single trace. To determine the quantity of light hitting the character you would calculate that based on the light’s falloff and intensity. Won’t account for indirect lighting. There are tutorials all over youtube for this btw, and plugins on the marketplace.

---

_[View the full topic](https://forums.unrealengine.com/t/is-it-possible-to-get-light-intensity-of-each-ray-at-run-time/1420530)._
