LightingModel.getAggregateLight()

   
Type function
Library wattageTileEngine.LightingModel.*
Return value Table
Keywords  
See also  

Overview

This function returns the aggregated red, green, and blue values of all the lights which affect the tile.

Syntax

LightingModel.getAggregateLight( row, col )
row (required)

Number. Row of the tile.

col (required)

Number. Column of the tile.

Examples

local light = lightingModelInstance.getAggregateLight(10, 15)
local red = light.r
local green = light.g
local blue = light.b