Skip to content

MapFrustum

Class Documentation

Edit documentation

A placed object with a view frustum. The frustum starts at the position in the object's transform and looks along the transform's negative Z axis, with the Y axis as up.

For a MapDynamicSpotlight the frustum is the lit volume: a pixel is lit only when it falls inside it.

Properties

Near

F32 = 10
Edit documentation

Distance from the position to the near plane, in world units.

far

F32 = 500
Edit documentation

Distance from the position to the far plane, in world units. For a spotlight it is also the range: brightness falls off linearly and is zero at this distance.

fov

F32 = 60
Edit documentation

Opening angle of the frustum, in degrees. Whether it is the vertical or the horizontal angle is not established; with Aspect at 1 the two are the same.