SaturnRingLibrary 0.9
SGL wrapper
 
Loading...
Searching...
No Matches

◆ SetDirectionalLight()

static void SRL::Scene3D::SetDirectionalLight ( const SRL::Math::Types::Vector3D & direction)
inlinestatic

Set directional light source.

Note
If scaling operation is being performed on current matrix, normal vector of the polygon is also being affected,thus brightness will change accordingly.
Parameters
directionLight direction unit vector