Skip to content

Light

Defines a light source. This element specifies the general properties of the light such as color and intensity.

Mandatory children

  • Origin: Transformation frame relative to the link's frame of reference.

    • Var: smtk_transform
    • Var: Input
    • Default: 0 0 0 0 0 0 1
    • Values info: x y z qx qy qz qw
  • Color: The color of the light. (RGBA)

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

    • Var: smtk_float
    • Type: Input
    • Default: 300
  • Cast shadow: Whether or not the light casts a shadow.

    • Var: smtk_boolean
    • Type: Input
    • Default: false
  • Type: Two types of lights are available:

    • Spot Light: Light that gets emitted from a single point in one direction along a cone. You can add as many as you want.
    • Point Light: Light that gets emitted from a single point in all directions. You can add as many as you want.