コード例 #1
0
        public void Render(IRenderArgs args)
        {
            Graphics.DepthStencilState = DepthStencilState.Default;
            Graphics.SamplerStates[0]  = SamplerState.PointWrap;

            if (UseDepthMap)
            {
                ChunkManager.Draw(args, true);
            }

            SkyRenderer.Draw(args);
            ChunkManager.Draw(args, false);

            EntityManager.Render(args);

            //TestItemRender.Render(args.GraphicsDevice, (Camera.Position + (Camera.Direction * 2.5f)));

            if (Camera is ThirdPersonCamera)
            {
                Player.RenderEntity = true;
            }
            else
            {
                Player.RenderEntity = false;
            }

            Player.Camera = Camera;
            Player.Render(args);
        }
コード例 #2
0
ファイル: World.cs プロジェクト: K4mey/Alex
        public void Render(IRenderArgs args)
        {
            Graphics.DepthStencilState = DepthStencilState.Default;
            Graphics.SamplerStates[0]  = SamplerState.PointWrap;

            if (UseDepthMap)
            {
                ChunkManager.Draw(args, true);
            }

            SkyRenderer.Draw(args);

            ChunkManager.Draw(args,
                              false,
                              RenderStage.OpaqueFullCube,
                              RenderStage.Opaque);

            EntityManager.Render(args);

            ChunkManager.Draw(args, false,
                              RenderStage.Transparent,
                              RenderStage.Translucent,
                              RenderStage.Animated,
                              RenderStage.AnimatedTranslucent,
                              RenderStage.Liquid);

            //TestItemRender.Render(args.GraphicsDevice, (Camera.Position + (Camera.Direction * 2.5f)));

            //Player.Camera = Camera;
            Player.Render(args);
        }
コード例 #3
0
        public void Render(IRenderArgs args)
        {
            if (_destroyed)
            {
                return;
            }

            args.GraphicsDevice.DepthStencilState = DepthStencilState.Default;
            args.GraphicsDevice.SamplerStates[0]  = SamplerState.PointWrap;

            SkyBox.Draw(args);

            ChunkManager.Draw(args,
                              RenderStage.OpaqueFullCube,
                              RenderStage.Opaque);

            EntityManager.Render(args);

            ChunkManager.Draw(args,
                              RenderStage.Transparent,
                              RenderStage.Translucent,
                              RenderStage.Animated,
                              RenderStage.Liquid);

            Player.Render(args);
        }
コード例 #4
0
ファイル: World.cs プロジェクト: PocketGold-MP/Alex
        public void Render(IRenderArgs args)
        {
            Graphics.DepthStencilState = DepthStencilState.Default;
            Graphics.SamplerStates[0]  = SamplerState.PointWrap;

            SkyRenderer.Draw(args);

            ChunkManager.Draw(args,
                              RenderStage.OpaqueFullCube,
                              RenderStage.Opaque);

            EntityManager.Render(args);

            ChunkManager.Draw(args,
                              RenderStage.Transparent,
                              RenderStage.Translucent,
                              RenderStage.Animated,
                              //    RenderStage.AnimatedTranslucent,
                              RenderStage.Liquid);

            Player.Render(args);
        }