Functions | |
void FCOLLADA_EXPORT | LoadPenumbra (FCDLight *light, float penumbraValue, FCDAnimated *penumbraAnimated, bool createAnimationChannel=true) |
Loads the penumbra into the light. |
|
Loads the penumbra into the light. The FCDLight does not contain penumbra information directly, but it can be represented with appropriate values for the outerAngle and the fallOffAngle. If the penumbra is positive, then the outerAngle is the sum of the penumbra value and the fallOffAngle. If the penumbra is negative, then the outerAngle is the fallOffAngle and the fallOffAngle is the outerAngle minus the penumbra. This method sets the fallOffAngle and outerAngle to correspond to the penumbra given. It takes care of the animations as well.
|