Skip to content

Commit

Permalink
Implement clipping with stencil in MSAA mode
Browse files Browse the repository at this point in the history
This approach is slightly unique because we actually have to clear clips out of the stencil buffer when we're done with them. To accomplish this, we add a new type of PLSDraw to our system that clears or intersects the stencil buffer. These stencilReset operations can be re-ordered and batched together when non-overlapping regions have different clips.

Also adds a system to track clip "contentBounds" and "readBounds". For this change we ended up only needing the contentBounds, but tracking readBounds as well lays the groundwork for incorporating scissor optimizations into clipping.

To keep things simple, we don't reverse-sort clipped opaque paths in this change. We can work out the details on that later.

Diffs=
  • Loading branch information
csmartdalton committed Mar 6, 2024
1 parent 77d55ef commit ee940e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .rive_renderer
@@ -1 +1 @@
0e4e1be655001c8c042afdefaa26811b5e424787
9a6bf0821933acd33f63f7639970bad642f9a3e0

0 comments on commit ee940e6

Please sign in to comment.