Class: ShaderLightAtIndex

ShaderLightAtIndex(shader, index) → {ShaderLightAtIndex}

new ShaderLightAtIndex(shader, index) → {ShaderLightAtIndex}

Default Constructor

support of loading light info to the glsl shader

references are pointing to uLight[index]

Parameters:
Name Type Description
shader type
index type
Source:
Returns:
Type
ShaderLightAtIndex

Methods

_setShaderReferences(aLightShader, index) → {undefined}

Parameters:
Name Type Description
aLightShader type
index type
Source:
Returns:
Type
undefined

loadToShader(aCamera, aLight) → {undefined}

Parameters:
Name Type Description
aCamera type
aLight type
Source:
Returns:
Type
undefined

switchOffLight() → {undefined}

Source:
Returns:
Type
undefined