addPointLight

fun addPointLight(position: ERROR CLASS: Symbol not found for Triple<kotlin/Float, kotlin/Float, kotlin/Float>, color: Color = Color.WHITE, intensity: Float = 1.0f, radius: Float = 1.0f)

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

position

The position of the light in 3D space.

color

The color of the light. Defaults to white.

intensity

The intensity of the light. Defaults to 1.0.

radius

The radius of the light's influence. Defaults to 1.0.


fun addPointLight(x: Float, y: Float, z: Float, color: Color = Color.WHITE, intensity: Float = 1.0f, radius: Float = 1.0f)

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

x

The x-coordinate of the light's position.

y

The y-coordinate of the light's position.

z

The z-coordinate of the light's position.

color

The color of the light. Defaults to white.

intensity

The intensity of the light. Defaults to 1.0.

radius

The radius of the light's influence. Defaults to 1.0.