Home | Features | Roadmap | Learn | Documentation | ||
Latest version: Tramway SDK 0.0.9 Github Quick links Home Get Started |
Light ComponentThis EntityComponent is a wrapper around a light. Programming in C++
It's very simple, just pick the position of the light and its color. If you want to increase the brightness of the light, multiply the
Component<LightComponent> component;
If you want to turn the light from a point light into a spotlight, you can set its direction and exponent. The direction is a direction normal vector. The exponent starts at 1.0 and increasing it narrows the spotlight's width.
component->SetDirection(DIRECTION_FORWARD);
Scripting in LuaStill working on it... |
|
|