Skip to content

Spot light

Used to define a light that gets emitted from a single point in one direction, along a cone that increases in size the further from the light it gets.

Mandatory children

  • Origin: Initial transformation frame respect to the component's frame of reference.

    • Var: smtk_transform
    • Var: Constant
    • Default: 0 0 0 0 0 0 1
    • Values info: x y z qx qy qz qw
  • Color: Light color (RGBA)

    • Var: smtk_rgba
    • Type: Input
    • Default: 1 1 1 1
  • Intensity: The intensity of the light.

    • Var: smtk_float
    • Type: Input
    • Default: 0.1
  • Distance: Maximum range of the light.

    • Var: smtk_float
    • Type: Input
    • Default: 0
  • Decay: The amount the light dims along its distance.

    • Var: smtk_float
    • Type: Input
    • Default: 1
  • Angle: Maximum angle of light dispersion from its direction.

    • Var: smtk_float
    • Type: Input
    • Default: 0
  • Penumbra: Percent of the spotlight cone that is attenuated due to penumbra. It's range is from 0 to 1.

    • Var: smtk_coefficient
    • Type: Input
    • Default: 0