jgayfer / bevy_light_2d

General purpose 2D lighting for the Bevy game engine.
MIT License
128 stars 5 forks source link

Use `view.view_proj` for world projection #4

Closed giraugh closed 2 months ago

giraugh commented 2 months ago

Hi there! I was checking this out and seeing how it could fit into my project when I found a small issue with the world->screen projection not respecting the camera transform.

I'm not 100% on top of bevy rendering logic but from referencing bevy's sprite shaders seems like using view.view_proj instead of view.projection includes the camera's transform as well the "camera projection".

Summary