Two-Sided Lighting

Two-sided lighting affects how the backs of polygons are rendered.

It is enabled with glLightModel:

    glLightModelf(GL_LIGHT_MODEL_TWO_SIDE, GL_TRUE)

A separate material can be specified for the backs of polygons:

    glMaterialfv(GL_BACK, GL_DIFFUSE, [1, 1, 1, 1])