Ejemplo n.º 1
0
 public static RasterizerState CreateRasterizerState(SharpDX.Direct3D11.CullMode cullMode, float slopeScaledDepthBias, bool wireFrame)
 {
     return(new RasterizerState(new SharpDX.Direct3D11.RasterizerStateDescription()
     {
         IsAntialiasedLineEnabled = false,
         CullMode = cullMode,
         DepthBias = 0,
         DepthBiasClamp = 0,
         IsDepthClipEnabled = true,
         FillMode = wireFrame ? SharpDX.Direct3D11.FillMode.Wireframe : SharpDX.Direct3D11.FillMode.Solid,
         IsFrontCounterClockwise = true,
         IsMultisampleEnabled = true,
         IsScissorEnabled = false,
         SlopeScaledDepthBias = slopeScaledDepthBias
     }));
 }
Ejemplo n.º 2
0
 public static RasterizerState CreateRasterizerState(SharpDX.Direct3D11.CullMode cullMode)
 {
     return(CreateRasterizerState(cullMode, 0, false));
 }