Tramway SDK
|
Scene light tree. More...
Classes | |
struct | Light |
Functions | |
Octree< Light * > | light_tree ("light tree", 200) |
void | AddLight (light_t light, vec3 pos, float dist) |
Adds a light to the light tree. More... | |
void | FindLights (vec3 position, light_t *dest) |
Finds the 4 nearest lights to a given position. More... | |
void | RemoveLight (light_t light) |
Removes a light from the light tree. More... | |
Variables | |
Pool< Light > | light_list ("lighttree pool", 200) |
Scene light tree.
Contains all of the dynamic lights in the scene. Useful for finding which lights are illuminating a certain 3D model in the scene.
Internally uses an Octree.
Adds a light to the light tree.
Finds the 4 nearest lights to a given position.
position | Position from which the lights will be searched. |
dest | Pointer to an array of 4 light_t. |
void tram::Render::LightTree::RemoveLight | ( | light_t | light | ) |
Removes a light from the light tree.