.. role:: clio-inherited
   :class: clio-flag clio-flag-inherited


################
DirectionalLight
################

.. js:class:: DirectionalLight

   Contains properties of a directional light. More information can be found `here <https://docs.techsoft3d.com/hoops/visualize-web/latest/prog_guide/viewing/scene_attributes/lights.html>`_\ . See [[LightType.Directional]] for information on how the position is interpreted for directional lights.
   
   
   Index
   =====
   
   .. rubric:: Constructors
   
   
   .. rst-class:: api-xref-list
   
   
   * :js:func:`~DirectionalLight.constructor`
   
   .. rubric:: Properties
   
   
   .. rst-class:: api-xref-list
   
   
   * :js:data:`~DirectionalLight.color`
   * :js:data:`~DirectionalLight.position`
   * :js:data:`~DirectionalLight.space`
   * :js:data:`~DirectionalLight.type`
   
   




Constructors
============

.. js:method:: DirectionalLight.constructor

   .. rst-class:: sig-pretty-signature
   
      | DirectionalLight(**type**\ : :js:data:`LightType <Sc.LightType>`\ , **space**\ : :js:data:`LightSpace <Sc.LightSpace>`\ , **position**\ : :js:class:`~Point3`\ , **color**\ : :js:class:`~Color`\ ): :js:class:`~DirectionalLight`
   
   **Parameters**
   
      **type**\ : :js:data:`LightType <Sc.LightType>`
   
      **space**\ : :js:data:`LightSpace <Sc.LightSpace>`
   
      **position**\ : :js:class:`~Point3`
   
      **color**\ : :js:class:`~Color`
   
   
   **Returns**\ : :js:class:`~DirectionalLight`
   





Properties
==========

.. js:data:: DirectionalLight.color

   .. rst-class:: clio-flags
   
      :clio-inherited:`inherited`
   
   .. rst-class:: sig-pretty-signature
   
      | color: :js:class:`~Color`
   
   The light's color.
   



.. js:data:: DirectionalLight.position

   .. rst-class:: clio-flags
   
      :clio-inherited:`inherited`
   
   .. rst-class:: sig-pretty-signature
   
      | position: :js:class:`~Point3`
   
   The light's position in the scene. See [[LightType.Directional]] for information on how the position is interpreted for directional lights.
   



.. js:data:: DirectionalLight.space

   .. rst-class:: clio-flags
   
      :clio-inherited:`inherited`
   
   .. rst-class:: sig-pretty-signature
   
      | space: :js:data:`LightSpace <Sc.LightSpace>`
   
   The space in which the light's position is defined.
   



.. js:data:: DirectionalLight.type

   .. rst-class:: clio-flags
   
      :clio-inherited:`inherited`
   
   .. rst-class:: sig-pretty-signature
   
      | type: :js:data:`LightType <Sc.LightType>`
   
   The light's type.
   





