bool Ortho { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The Ortho property of the SceneCamera class indicates whether the camera should use orthographic projection. Orthographic projection is a method of projection in which objects are represented without perspective, meaning that objects appear the same size regardless of their distance from the camera.

Usage

To enable orthographic projection for a SceneCamera instance, set the Ortho property to true. To use perspective projection, set it to false.

Example

// Create a new SceneCamera instance
SceneCamera camera = new SceneCamera();

// Enable orthographic projection
camera.Ortho = true;

// Disable orthographic projection (use perspective projection)
camera.Ortho = false;