コード例 #1
0
        public void DepthRange()
        {
            DepthRange depthRange = new DepthRange();

            depthRange.Near = 0.25;
            depthRange.Far  = 0.75;

            Assert.AreEqual(0.25, depthRange.Near);
            Assert.AreEqual(0.75, depthRange.Far);
        }
コード例 #2
0
ファイル: RenderState.cs プロジェクト: jpespartero/OpenGlobe
 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;
 }
コード例 #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;
 }
コード例 #4
0
        public void DepthRange()
        {
            DepthRange depthRange = new DepthRange();
            depthRange.Near = 0.25;
            depthRange.Far = 0.75;

            Assert.AreEqual(0.25, depthRange.Near);
            Assert.AreEqual(0.75, depthRange.Far);
        }