FlickerControllerclass manages a flickering effect for a light node.
class FlickerController final : public Controller
FlickerController(float intensity, float amplitude);
||The intensity of the flickering effect. This should be in the range (0.0, 1.0].|
||The maximum displacement distance for motion of the light node.|
FlickerControllerclass is assigned to a
Lightnode to make it continuously change intensity and randomly move within a small volume to simulate a flickering light effect that could be produced by a flame. The
intensityparameter specifies the intensity of the changes in the brightness of the light, and the
amplitudeparameter specifies the maximum distance that the light's position is moved from its original position.
A flicker controller is capable of driving a
ShaderParameterControllerattached to another node. The alpha channel of the flicker controller's output contains the current intensity of the flicker effect.