示例#1
0
        public void Draw(Matrix view, Matrix projection, Vector3 cameraPosition)
        {
            // Disable the depth buffer
            graphics.DepthStencilState = DepthStencilState.None;

            // Move the model with the sphere
            _model.Position = cameraPosition;

            _model.Draw(view, projection, cameraPosition);

            graphics.DepthStencilState = DepthStencilState.Default;
        }
示例#2
0
 public void Draw(Matrix View, Matrix Projection, Vector3 CameraPosition)
 {
     waterMesh.Draw(View, Projection, CameraPosition);
 }