ClusteredLightManager

Undocumented in source.

Constructors

this
this(float sceneSize, uint numClusters, Owner o)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

addLight
LightSource addLight(Vector3f position, Color4f color, float energy, float radius, float areaRadius)
Undocumented in source. Be warned that the author may not have intended to support it.
bindClusterTexture
void bindClusterTexture()
Undocumented in source. Be warned that the author may not have intended to support it.
bindIndexTexture
void bindIndexTexture()
Undocumented in source. Be warned that the author may not have intended to support it.
bindLightTexture
void bindLightTexture()
Undocumented in source. Be warned that the author may not have intended to support it.
unbindClusterTexture
void unbindClusterTexture()
Undocumented in source. Be warned that the author may not have intended to support it.
unbindIndexTexture
void unbindIndexTexture()
Undocumented in source. Be warned that the author may not have intended to support it.
unbindLightTexture
void unbindLightTexture()
Undocumented in source. Be warned that the author may not have intended to support it.
update
void update(RenderingContext* rc)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

clusterData
LightCluster[] clusterData;
Undocumented in source.
clusterSize
float clusterSize;
Undocumented in source.
clusterTexture
GLuint clusterTexture;
Undocumented in source.
clusters
uint[] clusters;
Undocumented in source.
clustersPosition
Vector2f clustersPosition;
Undocumented in source.
currentlyVisibleLights
uint currentlyVisibleLights;
Undocumented in source.
domainSize
uint domainSize;
Undocumented in source.
indexTexture
GLuint indexTexture;
Undocumented in source.
invSceneSize
float invSceneSize;
Undocumented in source.
lightIndices
uint[] lightIndices;
Undocumented in source.
lightSources
DynamicArray!LightSource lightSources;
Undocumented in source.
lightTexture
GLuint lightTexture;
Undocumented in source.
lights
Vector3f[] lights;
Undocumented in source.
maxNumIndices
uint maxNumIndices;
Undocumented in source.
maxNumLights
uint maxNumLights;
Undocumented in source.
numLightAttributes
uint numLightAttributes;
Undocumented in source.
position
Vector3f position;
Undocumented in source.
sceneSize
float sceneSize;
Undocumented in source.

Meta