| CalculateCameraPlanes(ICamera, Boolean, Single, Single) |
CalculateCameraPlanes sets the zNear and zFar parameters to camera near plane distance and camera far plane distance.
The values are calculated with using the bounding box of the current scene and specified camera.
When adjustValues Boolean parameter is true, the zNear and zFar values are slightly adjusted to increase the distance between zNear and zFar (recommended).
CalculateCameraPlanes returns false if the calculated values are not correct (are 0, NaN or Infinity). This can happen when camera's matrices are not set.
|
| CalculateCameraPlanes(Matrix, Boolean, Boolean, Vector3, Boolean, Single, Single) |
CalculateCameraPlanes sets the zNear and zFar parameters to camera near plane distance and camera far plane distance.
When adjustValues Boolean parameter is true, the zNear and zFar values are slightly adjusted to increase the distance between zNear and zFar (recommended).
CalculateCameraPlanes returns false if the calculated values are not correct (are 0, NaN or Infinity). This can happen when camera's matrices are not set.
|