IntensityLightFilter

Overview


The Intensity Light Filter modifies the intensity, exposure, and color attributes of a Light. It is a single value multiplier.


Attribute Reference

Properties attributes

color

Rgb
default: [ 1, 1, 1 ]

Multiply the light radiance by this RGB color value

exposure

Float
default: 0.0

Multiply the light radiance by exposure = pow(2, exposure)

intensity

Float
default: 1.0

Multiply the light radiance by this intensity value

invert

Bool
default: False

Invert the light radiance by 1/radiance

General attributes

on

Bool
default: True

Turns the light filter on/off.


Examples


No intensity
filter = IntensityLightFilter("/Scene/lighting/intensity") {
}
Change intensity
filter = IntensityLightFilter("/Scene/lighting/intensity") {
    ["intensity"] = 2.0
}
Change exposure
filter = IntensityLightFilter("/Scene/lighting/intensity") {
    ["exposure"] = 2.0
}
Change color
filter = IntensityLightFilter("/Scene/lighting/intensity") {
    ["color"] = Rgb(0.3, 0.8, 0.8)
}
Invert exposure
filter = IntensityLightFilter("/Scene/lighting/intensity") {
    ["exposure"] = 3.0,
    ["invert"] = true
}
Invert color
filter = IntensityLightFilter("/Scene/lighting/intensity") {
    ["color"] = Rgb(0.3, 0.8, 0.8),
    ["invert"] = true
}