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; }
public void Draw(Matrix View, Matrix Projection, Vector3 CameraPosition) { waterMesh.Draw(View, Projection, CameraPosition); }