< Zurück | Inhalt | Weiter >

Colors and lighting

See how the color of the Material and the color of the directional light interact to produce the actual rendered color. Sophisticated lighting equations are at work to combine the effects of both at runtime. Try changing the shininess parameter to (80.0f) to increase or decrease the apparent shininess of the smaller Sphere.

Try removing the setMaterial call and see how rendering is affected.