Light
Variables
Name |
Type |
Description |
---|---|---|
type |
The light’s type. |
|
color |
Math::vec3 |
The light’s color. |
intensity |
float |
The light’s intensity, it is multiplied with the color. |
direction |
Math::vec3 |
The light’s base direction vector. Only used by directional lights and spot lights. |
cutoff |
Math::vec2 |
The light’s cutoff values. Only used by spot lights. In radians. |
distance |
float |
The light’s distance. Only used by point lights and spot lights. |
Notes
JSON for the .ntsn - Scene scene file format:
Name |
Type |
Description |
Possible values |
||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
light |
Array of Object |
|