happy-turtle / oit-unity

Order-independent Transparency Implementation in Unity with Per-Pixel Linked Lists
Apache License 2.0
181 stars 25 forks source link

fix: use current camera for buffer size instead of Screen parameters. #34

Closed happy-turtle closed 3 days ago

happy-turtle commented 1 month ago

The goal is to fix multi-camera setups in editor or in runtime. Currently the buffer setup uses the screen parameters to determine buffer sizes. The screen parameters can be different though for e.g. the editor, scene and preview window. And the screen parameters might not actually represent the correct size for the currently rendering camera. Eventually should resolve #33.