-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
draw extrusions and custom layers into main framebuffer
Previously, both fill-extrusions and custom layers were drawn into a offscreen framebuffer before being copied over to the main framebuffer. Drawing directly into the main frame buffer is better because: - it avoids fragment-expensive copies - it unblocks using msaa antialiasing (which only works in the main Drawing opaque extrusions and custom layers involved few changes. Transparent extrusions needed to be implemented differently. They now use a two pass approach: - the first pass only draws depth - the second pass only colors a sufrace if it's depth matches Some tweaks were made to how we draw stencil masks so that we could use the stencil buffer in the second pass to prevent double-shading. The changes should reduce the amount of stencil clears that happen. The way fill-extrusion-opacity works across layers was already kind of weird. This pr makes no attempt to change any of that behaviour. It should be completely backwards compatible.
- Loading branch information
Showing
33 changed files
with
249 additions
and
225 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.