TruncatedPyramidShaftEffectObjectclass encapsulates data pertaining to a truncated pyramid light shaft effect.
class TruncatedPyramidShaftEffectObject final : public ShaftEffectObject, public TruncatedPyramidVolume
TruncatedPyramidShaftEffectObject(const Vector2D& size, float height, float ratio, const ColorRGBA& color);
||The size of the light shaft's cross section at the base of the pyramid.|
||The height of the light shaft.|
||The ratio of the upper size to the base size.|
||The color of the light shaft.|
TruncatedPyramidShaftEffectObjectclass encapsulates data pertaining to a truncated pyramid light shaft effect. In its local coordinate space, the rectangular cross section of the base of a truncated pyramid light shaft has one of its corners at the origin, and the components of the
sizeparameter define the extents of the rectangle in the positive x and y directions. The
heightparameter defines the extent of the light shaft in the z direction, but this is only used for constructing the polygonal geometry of the light shaft. The
ratioparameter defines the ratio between the size of the top face and the bottom face (the base) of the truncated pyramid and should be in the range (0,1). The interior of the light shaft itself is rendered as if it extends to the apex of the untruncated pyramid in the z direction and as if it had infinite extent in the −z direction.