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

light_path_selection

Int enum
  0 = “all light paths” (default)
  1 = “all indirect”
  2 = “all indirect first bounce”
  3 = “indirect diffuse”
  4 = “indirect diffuse first bounce”
  5 = “indirect specular”
  6 = “indirect specular first bounce”

Controls which light paths the filter is applied to.

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
}