PointLight
-
class
PointLight
() Contains properties of a point light. More information can be found [here](https://docs.techsoft3d.com/communicator/latest/prog_guide/viewing/scene_attributes/lights.html).
Constructors
Constructors
-
PointLight.
constructor
(type, space, position, color, power, decay) Arguments: - type (
LightType()
) – The light’s type. See [[type]]. - space (
LightSpace()
) – The space in which a light is defined. See [[space]] - position (
Point3()
) – The light’s position. See [[position]]. - color (
Color()
) – The light’s color. See [[color]]. - power (
number()
) – The light’s power. See [[power]]. - decay (
number()
) – The light’s power. See [[decay]].
Return type: PointLight
- type (
Properties
-
PointLight.
color
Type: Color The light’s color.
-
PointLight.
decay
Type: number How quickly the light will attenuate as it travels further from its source
-
PointLight.
position
Type: Point3 The light’s position in the scene. See [[LightType.Directional]] for information on how the position is interpreted for directional lights.
-
PointLight.
power
Type: number How bright the light is
-
PointLight.
space
Type: LightSpace The space in which the light’s position is defined.
-
PointLight.
type
Type: LightType The light’s type.