Set the camera's projection, either an orthographic camera or a perspective camera.
Declaration Syntax
C# |
public void SetProjection( ProjectionMode mode, float width, float height, float near, float far )
Parameters
- mode (ProjectionMode)
- Projection mode, perspective or orthographic
- width (Single)
- Width of the view volume at the near view plane
- height (Single)
- Height of the view volume at the near view plane
- near (Single)
- Distance to the near view plane (or min-Z value if ortho)
- far (Single)
- Distance to the far view plane (or max-Z value if ortho)
Assembly: Tesla (Module: Tesla) Version: 0.5.0.0 (0.5.0.0)