addLight

open override fun addLight(position: ERROR CLASS: Symbol not found for Triple<kotlin/Float, kotlin/Float, kotlin/Float>, target: ERROR CLASS: Symbol not found for Triple<kotlin/Float, kotlin/Float, kotlin/Float>, color: Color, directional: Boolean)

Adds a light to the shader.

Parameters

position

The position of the light in 3D space.

target

The target point the light is pointing to.

color

The color of the light. Defaults to white.

directional

Whether the light is directional or point light. If the light is directional, the position is treated as a direction vector. If the light is a point, the light will attenuate with distance.