This example shows how to use materials and shadows. more info