The tag has no usage guidance.

learn more… | top users | synonyms

5
votes
1answer
857 views

Stencil mask with AlphaTestEffect

I am trying to pull off the following effect in XNA 4.0: The purple area has 50% opacity. I have gotten pretty close with the following code: public static DepthStencilState AlwaysStencilState = ...
1
vote
0answers
25 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 ...
1
vote
0answers
28 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
0answers
933 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. // Class Region public void Render(GraphicsDevice Device, Camera ...
0
votes
0answers
64 views

How to create Line of Sight shader?

I have an algorithm to build my sight polygon: https://www.youtube.com/watch?v=x7tFnVX11x0 I want now to create a visibility from it that is similar to this: http://cdn-static.gamekult.com/gamekult-...