Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebGLTile: Properly render semi-transparent tiles #14983

Merged
merged 5 commits into from Aug 8, 2023

Commits on Aug 8, 2023

  1. Configuration menu
    Copy the full SHA
    1fb7257 View commit details
    Browse the repository at this point in the history
  2. webgl/Helper: Allow enabling depth testing

    This uses the default GL_LESS depth function.
    puckipedia committed Aug 8, 2023
    Configuration menu
    Copy the full SHA
    86ca3e6 View commit details
    Browse the repository at this point in the history
  3. Do not discard transparent pixels

    We still need to update the depth layer. This doesn't change normal
    rendering behavior, either.
    puckipedia committed Aug 8, 2023
    Configuration menu
    Copy the full SHA
    e7b4e5b View commit details
    Browse the repository at this point in the history
  4. TileLayerBase: Clip tiles using depth

    This changes the WebGL tile renderer to render tiles zoomed-in first,
    using the depth buffer as to clip lower layers of tiles without blending
    any transparent tiles. Any tile that uses alpha is drawn last, with the
    highest possible Z, to allow blending with the lower layer of already drawn
    tiles.
    puckipedia committed Aug 8, 2023
    Configuration menu
    Copy the full SHA
    463b5b5 View commit details
    Browse the repository at this point in the history
  5. WebGL/Helper: use LEQUAL instead of LESS

    The vector tile renderer depends on being able to render at the same
    depth multiple times, for different vector tile layers.
    puckipedia committed Aug 8, 2023
    Configuration menu
    Copy the full SHA
    09c83f3 View commit details
    Browse the repository at this point in the history