add Light
Adds a light to the shader.
Parameters
The position of the light in 3D space.
The target point the light is pointing to.
The color of the light. Defaults to white.
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.
Adds a light to the shader using individual float parameters for position and target.
Parameters
The x-coordinate of the light's position.
The y-coordinate of the light's position.
The z-coordinate of the light's position.
The x-coordinate of the light's target point.
The y-coordinate of the light's target point.
The z-coordinate of the light's target point.
The color of the light. Defaults to white.
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.