Render rewrite 2: integrated lights and glMaterial