← Back to vivid-3d

Light3D

GPU Gpu

Defines a configurable 3D light source for the scene pipeline.

Light3D creates directional, point, or spot lights with adjustable color, placement, and intensity so scenes can be lit without embedding light logic inside geometry operators.

Parameters

NameTypeDescription
typeintLight type: directional, point, or spot.
intensityfloatOverall light intensity.
rfloat
gfloat
bfloat
radiusfloatInfluence radius for local lights.
pos_xfloatLight position along the X axis.
pos_yfloat
pos_zfloat
dir_xfloat
dir_yfloatY component of the light direction.
dir_zfloat
spot_anglefloatCone angle for spot lights.
spot_blendfloat