LerpSunDirection( <dir to sun now>, <dir to sun at end>, <lerp time> )


Module: Level
SP Only

Summary:

Overrides the sun direction for a level. Use 'resetSunDirection' to revert to the map's values. The direction will lerp from the current direction on the client.



Example:

LerpSunDirection( (-0.5, 0.5, -1.0), (-0.5, -0.5, -1.0), 1.0 );



Required Args:

  • 1 : <dir to sun now> The direction to the sun now. It need not be normalized.
  • 2 : <dir to sun at end> The direction to the sun after lerp time. It need not be normalized.
  • 3 : <lerp time> Time in second to lerp over.