Kruptein / PlanarAlly

A companion tool for when you travel into the planes.
https://www.planarally.io/
MIT License
395 stars 73 forks source link

bug(Rendering): Fix layer transparency #1247

Closed Kruptein closed 1 year ago

Kruptein commented 1 year ago

Higher layers are rendered with a 0.3 opacity filter to make it clear that they are not in the current view. This opacity was however only set when changing layers and not part of the main render logic. This caused a bug where resizing the screen, which does some internal changes, caused the opacity information to be lost.

This PR moves the transparency check to be a proper part of the render logic itself and not of the UI.

Fixes #1246