-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve lightight source light values documentation #9809
Comments
It is willingly that they don't have the same name:
illuminance is the amount of light a surface will receive, or be illuminated by the directional light, while intensity is the intensity of a spotlight / point light |
Oohh I see. So for a summary:
Since point light/spot lights fall-off with distance, the amount of lumens is constant, but the luxes can change depending on how distant the lighted surface is. Since the
Well, it's just a documentation issue then. |
it has been slightly improved very recently by moving a doc comment from the default impl on the field to the field itself in #9724 so that at least both mention their unit now |
bevyengine#11551) # Objective - Fix bevyengine#9809 ## Solution - Describe the difference between lumens and luxes, and why some lightsources use one and some the other.
Problem
PointLight
has anintensity
field, whileDirectionalLight
hasilluminance
field.Solution
either use
intensity
orilluminance
but not both (I personally am in favor ofintensity
because it's easier to spell)The text was updated successfully, but these errors were encountered: