add Directional Light
Adds a directional light to the shader.
Directional lights simulate light coming from a specific direction, similar to sunlight, where the light rays are parallel and affect all objects in the scene uniformly.
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.
The intensity of the light. Defaults to 1.0.
Adds a directional light to the shader using individual float parameters for position and target.
Directional lights simulate light coming from a specific direction, similar to sunlight, where the light rays are parallel and affect all objects in the scene uniformly.
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.
The intensity of the light. Defaults to 1.0.