-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[Merged by Bors] - add Visibility for lights #3958
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this LGTM when #3916 is merged. I'll re-check it once that has been.
- add Visibility to PointLightBundle and DirectionLightBundle - filter lights used by Visibility.is_visible
Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
I think this needs a bit of documentation. What does it mean to make a light not visible? For me it would imply that there's some sort of entity being rendered at the position of a point light. Obviously this is not what is going on here, but I'm honestly just not sure what it does. |
It enables/disable the light source. Turns it on/off. Makes its light visible/not. I agree is not the most intuitive component naming and I agree some documentation would be good. I don’t want to get into the weeds of the whole ‘what should we use bevy-wide for an active/inactive, enabled/disabled, etc component that is discoverable by an editor?’ discussion here. In my opinion, that is a separate discussion and Visibility is ok for this for now. Sorry if I sound harsh with this response, it’s not directed at anyone in particular, I just think it’s an isolated question that should be taken on its own and addressed everywhere rather than having it hold up any PR that wants enable/disable functionality. People are welcome to disagree but then I think taking a decision and enacting it must be a very high priority. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Taking into consideration what @superdump said. I think just adding a short doc comment on the property is more than enough for this PR.
Co-authored-by: Charles <IceSentry@users.noreply.github.com>
bors r+ |
# Objective Add Visibility for lights ## Solution - add Visibility to PointLightBundle and DirectionLightBundle - filter lights used by Visibility.is_visible note: includes changes from #3916 due to overlap, will be cleaner after that is merged
# Objective Add Visibility for lights ## Solution - add Visibility to PointLightBundle and DirectionLightBundle - filter lights used by Visibility.is_visible note: includes changes from bevyengine#3916 due to overlap, will be cleaner after that is merged
# Objective Add Visibility for lights ## Solution - add Visibility to PointLightBundle and DirectionLightBundle - filter lights used by Visibility.is_visible note: includes changes from bevyengine#3916 due to overlap, will be cleaner after that is merged
Objective
Add Visibility for lights
Solution
note: includes changes from #3916 due to overlap, will be cleaner after that is merged