Enum opengex::structure::AttenuationKind [] [src]

pub enum AttenuationKind {
    Distance,
    Angle,
    CosAngle,
}

A helper enum representing different kinds of attenuation functions.

Variants

The input to the attenuation function is the radial distance from the LightObject the parent Atten structure is associated with.

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.

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.