BBox ProjectionBounds { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The ProjectionBounds property of the SceneCubemap class defines the bounding box within which the cubemap projection is applied. This property is crucial for determining the spatial limits of the cubemap's influence in the scene, allowing for precise control over where the cubemap's effects are visible.

Usage

To use the ProjectionBounds property, you can get or set its value to define the area affected by the cubemap projection. This is particularly useful when you want to limit the cubemap's effect to a specific region of your scene.

Example usage:

SceneCubemap cubemap = new SceneCubemap();
BBox bounds = new BBox(new Vector3(-10, -10, -10), new Vector3(10, 10, 10));
cubemap.ProjectionBounds = bounds;

In this example, the cubemap's projection is limited to a bounding box defined by the vectors (-10, -10, -10) and (10, 10, 10).

Example

SceneCubemap cubemap = new SceneCubemap();
BBox bounds = new BBox(new Vector3(-10, -10, -10), new Vector3(10, 10, 10));
cubemap.ProjectionBounds = bounds;