class FlickerController
Defined in:
The C4Controller.h
FlickerController
class manages a flickering effect for a light node.
Definition
class FlickerController final : public Controller
Constructor
FlickerController(float intensity, float amplitude);
Parameters
intensity |
The intensity of the flickering effect. This should be in the range (0.0, 1.0]. |
amplitude |
The maximum displacement distance for motion of the light node. |
Description
The FlickerController
class is assigned to a Light
node 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 intensity
parameter specifies the intensity of the changes in the brightness of the light, and the amplitude
parameter specifies the maximum distance that the light's position is moved from its original position.A flicker controller is capable of driving a
ShaderParameterController
attached to another node. The alpha channel of the flicker controller's output contains the current intensity of the flicker effect.
Base Classes
Controller |
A FlickerController is a specific type of controller.
|
See Also