FlashControllerclass manages a light that flashes momentarily.
class FlashController final : public Controller
||Returns the flash flags.|
||Sets the flash flags.|
FlashController(const ColorRGB& color, float start, int32 duration);
||The brightest color that the light will attain.|
||The starting intensity of the light (in the range 0.0 to 1.0).|
||The duration of the flash, in milliseconds.|
FlashControllerclass is assigned to a
Lightnode to make it flash brightly and then return to a darkened state. The color specified by the
colorparameter represents the brightest color that will be attained by the light. The value of the
startparameter represents the fraction of this brightest color at which the flash effect starts. The flash effect increases in intensity from the starting value to 100% brightness and then decreases to an intensity of zero.
A flash controller created with the above constructor is initially in the awake state and starts running immediately. A flash controller created this way is also in the nonpersistent state, meaning that it deletes its target node when the intensity reaches zero. The controller can be made persistent by calling the
A flash controller created in the World Editor is initially in the sleeping state, and it is persistent. The flash effect starts running when the controller is awakened.
A flash controller is capable of driving a
ShaderParameterControllerattached to another node. The alpha channel of the flash controller's output contains the current brightness factor of the flash effect.