zaycev / bevy-magic-light-2d

Experiment with computing 2D shading, lighting and shadows with Bevy Engine
Apache License 2.0
427 stars 37 forks source link

fix: move post processing material along with camera #54

Closed luan closed 4 months ago

luan commented 4 months ago

If we don't move the Quad material along with the camera we'll get a cropped up viewport as the player moves the camera around. Adding those to the same entity (and as such making them share a transform), solves the issue.

Fixes #51

trunk-io[bot] commented 4 months ago

Merging to main in this repository is managed by Trunk.

luan commented 4 months ago

Turns out the issue is with moving the PostProcessing camera. One shouldn't move that camera but only move all of the other main cameras where the world is rendered to.