DirectionalLight

class DirectionalLight()

Contains properties of a directional light. More information can be found [here](https://docs.techsoft3d.com/communicator/latest/prog_guide/viewing/scene_attributes/lights.html). See [[LightType.Directional]] for information on how the position is interpreted for directional lights.

Constructors

Properties


Constructors

DirectionalLight.constructor(type, space, position, color)
Arguments:
  • type (LightType()) – None
  • space (LightSpace()) – None
  • position (Point3()) – None
  • color (Color()) – None
Return type:

DirectionalLight

Properties

DirectionalLight.color
Type:Color

The light’s color.

DirectionalLight.position
Type:Point3

The light’s position in the scene. See [[LightType.Directional]] for information on how the position is interpreted for directional lights.

DirectionalLight.space
Type:LightSpace

The space in which the light’s position is defined.

DirectionalLight.type
Type:LightType

The light’s type.