DirectionalLight Class

Module: Lights

A light that gets emitted in a specific direction.

This light will behave as though it is infinitely far away and the rays produced from it are all parallel.

Based on THREE.DirectionalLight documentation for the object can be found at https://threejs.org/docs/index.html#Reference/Lights/DirectionalLight

Constructor

DirectionalLight

(
  • hex
  • intensity
)

Parameters:

  • hex Number

    Light color in hex RGB

  • intensity Number

    Light intensity

Item Index

Methods

Methods

updateShadowMap

()

Update light shadow map atributtes at runtime