LightingModel.setIsTileAffectedByAmbientCallback()
Type | function |
Library | wattageTileEngine.LightingModel.* |
Return value | VOID |
Keywords | |
See also |
Overview
This function sets the callback function used to determine whether a tile should be affected by ambient light.
Syntax
LightingModel.setIsTileAffectedByAmbientCallback( callback )
callback (required)
function. The callback function used to determine whether a tile should be affected by ambient light.
The function should have the following signature:
boolean function(column, row)
Examples
lightingModelInstance.setIsTileAffectedByAmbientCallback(function (row, column)
-- Make all tiles affected by ambient lighting
return true
end)