TruncatedConeShaftEffectObjectclass encapsulates data pertaining to a truncated cone light shaft effect.
class TruncatedConeShaftEffectObject final : public ShaftEffectObject, public TruncatedConeVolume
TruncatedConeShaftEffectObject(const Vector2D& size, float height, float ratio, const ColorRGBA& color);
||The size of the light shaft's cross section at the base of the cone.|
||The height of the light shaft.|
||The ratio of the upper size to the base size.|
||The color of the light shaft.|
TruncatedConeShaftEffectObjectclass encapsulates data pertaining to a truncated cone light shaft effect. In its local coordinate space, the elliptical cross section of the base of a truncated cone light shaft has its center at the origin, and the components of the
sizeparameter define the semiaxis lengths 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 cone 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 cone in the z direction and as if it had infinite extent in the −z direction.