The ZFar
property of the CameraComponent
class represents the far clip plane distance of the camera. This is the maximum distance at which the camera can render objects. The value of ZFar
is crucial for determining the rendering range of the camera and should be set based on the specific needs of your game. A shorter distance is generally better for performance, with typical values ranging from 1000 to 30000. If a larger distance is required, it can be balanced by increasing the ZNear
value.