Extra properties available for use if the node type is specified as “light”.
Name | Description | Default | Required |
---|---|---|---|
color | RGB color value for the light. | [1, 1, 1] | no |
point | A light_point object definition, if this is a point light. | N/A | no |
directional | A light_directional object definition, if this is a directional light. | N/A | no |
spot | A light_spot object definition, if this is a spot light. | N/A | no |
on | A boolean value indicating whether the light is on. | true | no |
Only one of point, directional, or spot may appear. If none are given, the light is an ambient light, in which case the light transform information does not affect the light.
Definition of a node of type “light” along with default settings for node and light properties.
{ "id" : "sun67", "type" : "light", "label" : "Sun", "color" : [ 0.45, 0.89, 0.12 ], "directional" : { "intensity" : 0.34, "shadow_type" : "shadow_map", "shadow_softness" : 3.0, "shadow_bias" : 2.8, }, "on" : false, "translation" : { "value" : [ 0.00, 0.00, 1.00 ] }, "rotation" : { "value" : [ 1.00, 0.00, 1.89 ] }, "scale" : { "value" : [ 1.0, 1.0, 1.0 ] } }