Maven module :un.engine : engine-opengl :
Class :
un.engine.opengl.light.DirectionalLight
Extends/Implements :
un.engine.opengl.light.Light
Subclasses : -
Variables : -
Functions :
DirectionalLight,
DirectionalLight,
getWorldSpaceDirection,
createFittingCamera
public void
DirectionalLight ()
public void
DirectionalLight (Color diffuse, Color specular)
public Tuple
getWorldSpaceDirection ()
public CameraMono
createFittingCamera (CameraMono camera)
Direction are provided by the GLNode matrix.
Collada 1.5 :
A directional light is one that lights everything from the same direction, regardless of location.
The light’s default direction vector in local coordinates is [0,0,-1], pointing down the negative z axis. The
actual direction of the light is defined by the transform of the node where the light is instantiated.
author Johann Sorel