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:688
A light with color and intensity. A point light by default, add a spot light component to add a cutoff. Can be parameterized to simulate the atmosphere sun.
Properties
color
color: Vec3;
Defined in: node_modules/@3dverse/livelink.core/dist/_prebuild/engine_types/components.d.ts:693
Light color.
Default Value
(1, 1, 1);
intensity
intensity: Float;
Defined in: node_modules/@3dverse/livelink.core/dist/_prebuild/engine_types/components.d.ts:698
Light intensity.
Default Value
1;
range
range: Float;
Defined in: node_modules/@3dverse/livelink.core/dist/_prebuild/engine_types/components.d.ts:703
The range for the point light. If the range is 0, then physically correct point light attenuation function is used.
Default Value
0;
isDirectional
isDirectional: boolean;
Defined in: node_modules/@3dverse/livelink.core/dist/_prebuild/engine_types/components.d.ts:708
Make this light directional, position is ignored in this case.
Default Value
false;
isSun
isSun: boolean;
Defined in: node_modules/@3dverse/livelink.core/dist/_prebuild/engine_types/components.d.ts:713
Make this light direction control the atmosphere sun direction. If more than one light is marked to be a sun results are undefined.
Default Value
false;