Support stencilOpSeparate & stencilFuncSeparate?
See original GitHub issueNow the properties of Material only support gl.stencilOp
& gl.stencilFunc
.
Can we add some properties to Material like stencilZFailBack
to support separated stencil settings in webgl2 ?
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
WebGLRenderingContext.stencilFuncSeparate() - Web APIs
stencilFuncSeparate () method of the WebGL API sets the front and/or back function and reference value for stencil testing.
Read more >WebGLRenderingContext.stencilFuncSeparate - Web APIs ...
Stencilling enables and disables drawing on a per-pixel basis. It is typically used in multipass rendering to achieve special effects. Syntax. void gl....
Read more >WebGLRenderingContext.stencilOpSeparate()
The WebGLRenderingContext.stencilOpSeparate() method of the WebGL API sets the front and/or back-facing stencil test actions.
Read more >stencilFuncSeparate method - dart:web_gl library
API docs for the stencilFuncSeparate method from the RenderingContext class, for the Dart programming language.
Read more >StencilTestTwoSideEnable - NVIDIA
Support for extension EXT_stencil_two_side. ... StencilFunc, StencilFuncSeparate, StencilMask, StencilMaskSeparate, StencilOp, StencilOpSeparate, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
.blendSrcAlpha
isnull
by default, so in that regard, adding 6 stencilBack
variants that default tonull
seems reasonable.If that would be too logistically complex, then yes, a
Material.separateStencil
flag may be necessary.Yes, this is very similar to
blendAlpha
, it might be more reasonable to keep the API consistent.