vrdLensFlareFxElement¶
-
class
vrdLensFlareFxElement¶
(Inherits vrdLensFlareElement)
This class is used for all common properties of vrdLensFlareStar, vrdLensFlareGhost, vrdLensFlareStreak and vrdLensFlareGlow lens flare effect classes.
Summary¶
Functions¶
-
vrdLensFlareFxElement.getColor()¶ Get the color of this effect.
Returns: Color of this effect Return type: QVector3D
-
vrdLensFlareFxElement.getFeather()¶ Get the fade out value.
Returns: Fade out value Return type: float
-
vrdLensFlareFxElement.getIntensity()¶ Get current intensity.
Returns: Current intensity of this effect Return type: float
-
vrdLensFlareFxElement.getRotation()¶ Get current used rotation value.
Returns: Rotation value Return type: float
-
vrdLensFlareFxElement.getSize()¶ Get the current used effect size.
Returns: Current used effect size Return type: float
-
vrdLensFlareFxElement.setColor(tint)¶ Use to change the color of the lens flare. If the light already has an assigned color, this color will be mixed with it.
Parameters: tint (QVector3D) – New color of this effect
-
vrdLensFlareFxElement.setFeather(blurring)¶ Lets the effect fade towards the edge. Value of 0.0 deactivates the effect.
Parameters: blurring (float) –
-
vrdLensFlareFxElement.setIntensity(intensity)¶ Makes the effect more or less intense.
Parameters: intensity (float) – New intensity
-
vrdLensFlareFxElement.setRotation(rotation)¶ Rotate the effect on light ray axis.
Parameters: rotation (float) – New rotation value
-
vrdLensFlareFxElement.setSize(size)¶ Set the effect size, must be positive.
Parameters: size (float) – Effect size