예제 #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);
        }