-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bevy_pbr: Calculate point light range from luminous power
Light has an inverse square falloff. As such, if we decide a minimum illuminance (lumens / m^2) and provide a point light source luminous power (lumens) then we can calculate a range at which the point light will reach that minimum illuminance as: luminous intensity (in lumens / steradian) = luminous power / (4 * pi) range = sqrt(luminous intensity / minimum illuminance) The minimum illuminance has been set to 0.1 lumens / m^2 which appears to be safe, after having evaluated what works for both dim and bright light sources.
- Loading branch information
Showing
3 changed files
with
61 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters