Questions tagged [stencil]
The stencil tag has no usage guidance.
10
questions with no upvoted or accepted answers
2
votes
0
answers
272
views
How can I make a transparent hole with shaperenderer using stencil masking in libgdx?
I'm making a 2d game, where I need a resizeable, moveable rectangle outline. I'm trying to use stencil masking to do it by cutting a hole in a solid rectangle, and I thought this would help:
How can ...
1
vote
0
answers
478
views
Custom shader with stencil breaks Unity built-in masking
my custom shader works like a charm for what I wanted it, but if it is referenced in the scene, Unity built-in masking stops working (both the Sprite Mask component and the rect-based Mask stop ...
1
vote
0
answers
195
views
Recreating A Puzzle Effect Using Stencils
I'm trying to recreate something I saw on reddit a while back. I tried rendering camera output onto planes, but am not getting the results that I want -- this is basically what I'm trying to recreate: ...
1
vote
0
answers
343
views
Stencil inside Stencil? (Multiple masks on same object)
So please take a look at what I want to achieve
The Red and Blue part is the object I want to mask. The thing is that it will be masked by the green area, and only after that it will be masked by the ...
1
vote
0
answers
181
views
Stencil IncrSat and DecrSat explanation
Can someone please explain me what is the purpose of IncrSat and DecrSat?
Currently I know that they increment/decrement the current value in the buffer and they make sure the value is between 0 and ...
1
vote
0
answers
1k
views
Clipping polygons in XNA with stencil (not using spritebatch)
The problem... i'm drawing polygons, in this case boxes, and i want clip children polygons with its parent's client area.
...
0
votes
0
answers
265
views
Setting the Stencil Test Function and Stencil Operation for subsequent draw calls in Unity SRP
I'm using HDRP and I would like to extend it without actually modifying HDRP code or writting my own SRP.
I'd like to:
Render some objects with a custom shader
Have those objects increase a stencil ...
0
votes
0
answers
82
views
stencil as shader resourceview
I would like to use the stencil information in my depthstencil buffer as shaderresourceview (DX11) in my shader.
I have a DSV D24S8 from which I create a R24X8 resource fine using the red for ...
0
votes
0
answers
282
views
OpenGL I want my image to change color based on stencil
I have an image and a rectangle on the screen, using the using this stencil functions I managed to render or not render a certain part of my image.
...
0
votes
1
answer
27
views
OpenGL stencil pipe
Is there a document describing 2D stencil pipe ?
Static, no rotation etc.
Something in more details then
enable stencil (buffer)
write stencil ( mask) to stencil buffer
1st pass
write stencil ...