Exemplo n.º 1
0
        public void FacetCulling()
        {
            FacetCulling facetCulling = new FacetCulling();
            facetCulling.Enabled = true;
            facetCulling.Face = CullFace.FrontAndBack;
            facetCulling.FrontFaceWindingOrder = WindingOrder.Clockwise;

            Assert.IsTrue(facetCulling.Enabled);
            Assert.AreEqual(CullFace.FrontAndBack, facetCulling.Face);
            Assert.AreEqual(WindingOrder.Clockwise, facetCulling.FrontFaceWindingOrder);
        }
Exemplo n.º 2
0
        public void FacetCulling()
        {
            FacetCulling facetCulling = new FacetCulling();

            facetCulling.Enabled = true;
            facetCulling.Face    = CullFace.FrontAndBack;
            facetCulling.FrontFaceWindingOrder = WindingOrder.Clockwise;

            Assert.IsTrue(facetCulling.Enabled);
            Assert.AreEqual(CullFace.FrontAndBack, facetCulling.Face);
            Assert.AreEqual(WindingOrder.Clockwise, facetCulling.FrontFaceWindingOrder);
        }
Exemplo n.º 3
0
 public RenderState()
 {
     PrimitiveRestart = new PrimitiveRestart();
     FacetCulling = new FacetCulling();
     ProgramPointSize = ProgramPointSize.Disabled;
     RasterizationMode = RasterizationMode.Fill;
     ScissorTest = new ScissorTest();
     StencilTest = new StencilTest();
     DepthTest = new DepthTest();
     DepthRange = new DepthRange();
     Blending = new Blending();
     ColorMask = new ColorMask(true, true, true, true);
     DepthMask = true;
 }
Exemplo n.º 4
0
 public RenderState()
 {
     PrimitiveRestart  = new PrimitiveRestart();
     FacetCulling      = new FacetCulling();
     ProgramPointSize  = ProgramPointSize.Disabled;
     RasterizationMode = RasterizationMode.Fill;
     ScissorTest       = new ScissorTest();
     StencilTest       = new StencilTest();
     DepthTest         = new DepthTest();
     DepthRange        = new DepthRange();
     Blending          = new Blending();
     ColorMask         = new ColorMask(true, true, true, true);
     DepthMask         = true;
 }