add Point Light
Adds a point light to the shader.
Point lights emit light in all directions from a single point, similar to a light bulb, illuminating nearby objects based on distance and attenuation.
Parameters
The position of the light in 3D space.
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.
Adds a point light to the shader using individual float parameters for position.
Point lights emit light in all directions from a single point, similar to a light bulb, illuminating nearby objects based on distance and attenuation.
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 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.