DepthStencilState.TwoSidedStencilMode Property

Enables or disables two-sided stenciling. The default is false.

Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework.Graphics (in microsoft.xna.framework.graphics.dll)

public bool TwoSidedStencilMode { get; set; }

Property Value

true to enable two-sided stenciling; false otherwise.

Set this property to CullMode.None to enable two-sided stencil mode. If the triangle winding order is clockwise, the StencilFunction will be used. If the winding order is counterclockwise, the CounterClockwiseStencilFunction will be used.

Xbox 360, Windows 7, Windows Vista, Windows XP

Community Additions

ADD
Show: