- Main Page
- Modules
- Namespaces
- Classes
- Files
- Related Pages

- Namespace List
- Namespace Members

# FCDLightTools Namespace Reference

Holds commonly-used transformation functions for lights. More...

## Functions
void FCOLLADA_EXPORT | LoadPenumbra (FCDLight *light, float penumbraValue, FCDAnimated *penumbraAnimated, bool createAnimationChannel=true)
| Loads the penumbra into the light.

## Detailed Description

Holds commonly-used transformation functions for lights.

## Function Documentation

void FCOLLADA_EXPORT FCDLightTools::LoadPenumbra | ( | FCDLight * | light,
|  | float | penumbraValue,
|  | FCDAnimated * | penumbraAnimated,
|  | bool | createAnimationChannel = `true`
| ) |

  | 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. Parameters:
  | light | The light to process.
  | penumbraValue | The value of the penumbra.
  | penumbraAnimated | The animated helper for the loaded penumbra.
  | createAnimationChannel | True to create animation channel for the falloff angle if needed. False will attach the animation to the outer angle's channel if needed.