add Spot Light
Adds a spot light to the shader.
Spot lights emit a cone of light from a specific point, similar to a flashlight, illuminating objects within the cone based on distance and angle.
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.
The radius of the light's influence. Defaults to 1.0.
The cutoff angle for the spotlight cone in radians. Defaults to 0.7853982 (45 degrees).
Adds a spot light to the shader using individual float parameters for position and target.
Spot lights emit a cone of light from a specific point, similar to a flashlight, illuminating objects within the cone based on distance and angle.
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.
The radius of the light's influence. Defaults to 1.0.
The cutoff angle for the spotlight cone in radians. Defaults to 0.7853982 (45 degrees).