The NearPlane
field of the Frustum
struct represents the near plane of the frustum, which is oriented inwards. This plane is crucial in defining the closest boundary of the frustum, beyond which objects are not visible in the view frustum.
The NearPlane
field of the Frustum
struct represents the near plane of the frustum, which is oriented inwards. This plane is crucial in defining the closest boundary of the frustum, beyond which objects are not visible in the view frustum.
Use the NearPlane
field to access or modify the near plane of a Frustum
instance. This can be useful when performing frustum culling or when you need to adjust the view frustum for rendering purposes.
// Example of accessing the NearPlane of a Frustum Frustum frustum = new Frustum(); Plane nearPlane = frustum.NearPlane; // Example of modifying the NearPlane frustum.NearPlane = new Plane(new Vector3(0, 0, 1), 1.0f);