You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The planned simplied draw state in #996 suggests using:
replace operator for Stencil::Clip
equality comparison for Stencil::Inside
non-equality comparison for Stencil::Outside
This design allows up to 255 different clip shapes at once, but they can not be combined using logical AND.
An idea is to use these settings to allow logical AND:
increment_clamp operator for Stencil::Clip
greater_equal comparison for Stencil::Inside
less comparison for Stencil::Outside
For a single clip shape, the behavior is the same in both alternatives.
The behavior is also the same when you have multiple clip shapes followed by Stencil::Inside(1), because the value will be greater or equal for all cases where the clip shapes overlap.
If you want to render A AND B, you can use Stencil::Clip(1) for both, and then Stencil::Inside(2).
The problem with this idea is that the algorithm for concave polygons will not work.
A downside is you can not have as many clip shapes at once.
The text was updated successfully, but these errors were encountered:
The planned simplied draw state in #996 suggests using:
Stencil::Clip
Stencil::Inside
Stencil::Outside
This design allows up to 255 different clip shapes at once, but they can not be combined using logical
AND
.An idea is to use these settings to allow logical
AND
:Stencil::Clip
Stencil::Inside
Stencil::Outside
For a single clip shape, the behavior is the same in both alternatives.
The behavior is also the same when you have multiple clip shapes followed by
Stencil::Inside(1)
, because the value will be greater or equal for all cases where the clip shapes overlap.If you want to render
A AND B
, you can useStencil::Clip(1)
for both, and thenStencil::Inside(2)
.The problem with this idea is that the algorithm for concave polygons will not work.
A downside is you can not have as many clip shapes at once.
The text was updated successfully, but these errors were encountered: