bryanedds / Nu

Repository hosting the open-source Nu Game Engine and related projects.
MIT License
1.05k stars 152 forks source link

Per-light adjustment uniform / API for lightBleedFilter scalar. #710

Closed bryanedds closed 6 months ago

bryanedds commented 6 months ago

Lights with greater range seem like they would benefit from the ability to adjust the lightBleedFilter parameter in the shader. Let's provide an API for this.

bryanedds commented 6 months ago

Alternatively, experiment with adjusting the existing value based on distance from light to fragment. If that works, we can eliminate the need for any sort of user configuration in this regard.