sbox-scenestaging
sbox-scenestaging copied to clipboard
Fix lighting when using multiple Cameras
When enabling a second camera it seems to override the shadowmap or something with the newest camera instead of looking proper.
You can see in the following videos when the minimap is turned on, the lighting is completely changed:
- https://cdn.discordapp.com/attachments/1159407633497870347/1165287537909182464/2023-10-21_09-54-14.mp4?ex=6561fd17&is=654f8817&hm=e8f470f7c5215011f2b2e9f17e3848056bde2b29d6277bbdc8dab16a255d5af1&
- https://cdn.discordapp.com/attachments/1159407633497870347/1165320155178471575/sbox-dev_A7DVJPv5x0.mp4?ex=65621b77&is=654fa677&hm=ad10542cc82e283d27c0102e65c9200c5af2a7d4ad5c0d7534775c69c73ab077&
EDIT: It's worth noting that in the first video me turning off the main camera isn't really doing anything other than disabling the screen vignette. The minimap is a PanelComponent with a ScenePanel