Update directional light source.

Also fix incorrect usage of geometry object API.