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); }
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); }
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); }
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); }