Type | function |
Library | shader.* |
Visual Guide | Visual Guide |
Used to set the color of the light source added to the Dynamic Shader via addLight()
shader.setLightColor( table )
Table with RGB values
table = {r, g, b}
- r = red value (0 to 1)
- g = green value (0 to 1)
- b = red value (0 to 1)
alpha values are set by setAlpha()
local shader = require 'plugin.dynamic-shader'
local table = {1, 1, 1}
shader.setLightColor( table )
-- sets Dynamic Shader color to white