Enum opengex::structure::AttenuationKind
[−]
[src]
pub enum AttenuationKind { Distance, Angle, CosAngle, }
A helper enum representing different kinds of attenuation functions.
Variants
Distance
The input to the attenuation function is the radial distance from the LightObject the parent Atten structure is associated with.
Angle
The input to the attenuation function is the angle formed between the negative z-axis and the direction to the point being illuminated in object space.
The result of this function should be raised to the power value of a potential "power" paramter present in the parent Atten structure.
CosAngle
The input ot the attenuation function is the cosine of the angle formed between the negative z-axis and the direction to the point being illuminated in objet space.
The result of this function should be raised to the power value of a potential "power" paramter present in the parent Atten structure.