System.Nullable<Matrix> CustomProjectionMatrix { get; set; }

robot_2Generated
code_blocksInput

Description

The CustomProjectionMatrix property of the SceneCamera class allows you to specify a custom projection matrix for the camera. This can be useful when you need to override the default projection behavior, such as when implementing custom rendering techniques or effects that require a specific projection setup.

Usage

To use the CustomProjectionMatrix property, assign it a Matrix value that represents the desired projection matrix. If you set this property to null, the camera will use its default projection matrix.

Example usage:

SceneCamera camera = new SceneCamera();
Matrix customMatrix = new Matrix();
// Configure your custom matrix here
camera.CustomProjectionMatrix = customMatrix;

To revert to the default projection matrix, simply set the property to null:

camera.CustomProjectionMatrix = null;

Example

SceneCamera camera = new SceneCamera();
Matrix customMatrix = new Matrix();
// Configure your custom matrix here
camera.CustomProjectionMatrix = customMatrix;

// To revert to default
camera.CustomProjectionMatrix = null;