Transformations & Lighting

A light source's position is affected by the current transformation.

A light's position should be treated in the same way as a vertex position.
To position a light in world coordinates, define it after the camera transformation.

    apply camera perspective

    apply camera translation/rotation

    set light position (glLightfv)

    apply object transformation

    draw object
next