Latest version:
Tramway SDK 0.0.9
Github
Quick links
Home
Get Started

Light


Places a light into the scene.

Fields


Color | Vec3

The color of the light.

Distance | Float32

Maximum distance, in meters, that the light is allowed to travel. Used for lightmapping optimiziations.

Direction | Vec3

The direction of the light, if used as a spotlight. If you want a point light, set this to a random unit vector like {0, 1, 0}.

Exponent | Float32

Spotlight exponent. Higher values means narrower spot. Set this value to 1.0 to get a point light.

Messages


There are none.

Signals


There are none.