Skip to main content

Type Alias: PointLight

type PointLight = {
color: Vec3;
intensity: Float;
range: Float;
isDirectional: boolean;
isSun: boolean;
};

Defined in: node_modules/@3dverse/livelink.core/dist/_prebuild/engine_types/components.d.ts:706

Omnidirectional light source with physically based intensity and falloff. Acts as a point light by default; enable isDirectional to emit parallel rays. Attach a Spot Light component to add a cone cutoff. Can optionally drive the atmosphere sun direction.

Properties

color

color: Vec3;

Defined in: node_modules/@3dverse/livelink.core/dist/_prebuild/engine_types/components.d.ts:711

RGB light color in linear space [0–1]. Multiplies intensity.

Default Value

(1, 1, 1);

intensity

intensity: Float;

Defined in: node_modules/@3dverse/livelink.core/dist/_prebuild/engine_types/components.d.ts:716

Radiant intensity (W/sr). Controls brightness for physically based shading (inverse-square falloff).

Default Value

1;

range

range: Float;

Defined in: node_modules/@3dverse/livelink.core/dist/_prebuild/engine_types/components.d.ts:721

Hard cutoff distance for light influence and culling (meters). Set to 0 for no hard cutoff and physically correct inverse-square attenuation.

Default Value

0;

isDirectional

isDirectional: boolean;

Defined in: node_modules/@3dverse/livelink.core/dist/_prebuild/engine_types/components.d.ts:726

Treat this as a directional light using the entity's orientation; position is ignored.

Default Value

false;

isSun

isSun: boolean;

Defined in: node_modules/@3dverse/livelink.core/dist/_prebuild/engine_types/components.d.ts:731

Use this light's direction to control the atmosphere sun direction. Only one light should be marked as the sun; multiple are undefined.

Default Value

false;