public void DepthTest() { DepthTest depthTest = new DepthTest(); depthTest.Enabled = true; depthTest.Function = DepthTestFunction.LessThanOrEqual; Assert.IsTrue(depthTest.Enabled); Assert.AreEqual(DepthTestFunction.LessThanOrEqual, depthTest.Function); }
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; }