bevy_light_2d icon indicating copy to clipboard operation
bevy_light_2d copied to clipboard

Prevent a camera from doing lighting stuff

Open amytimed opened this issue 1 year ago • 3 comments

i have a background camera for my my backgrounds

but right now i see the lights visible on there (and so i see lights twice. once in the main camera, again on background one)

could we get a marker component which disables lighting for a camera?

amytimed avatar Apr 13 '25 00:04 amytimed

Hi!

I think what is best is to make the breaking change to disable lighting on cameras by default, and instead only run them on marked cameras.

This has come up before in other capacities. The original design was to make things easy, but there are downsides to running the 2d light systems by default on all cameras (performance being one of them).

jgayfer avatar Apr 16 '25 18:04 jgayfer

@amytimed This should be addressed by #49. Feel free to take a look / leave a review!

jgayfer avatar May 02 '25 19:05 jgayfer

nice, ill try that soon

right now my current workaround has been to just have my background camera incredibly far away

amytimed avatar May 03 '25 15:05 amytimed