Material Parameters

See how the material parameters affect both the sphere and the cube. Both objects are using the same material. Move the eye around to see specular reflection on the cube. See the code below.

This differs from MaterialParameters.shtml because it just supplies all the params to each constructor, allowing each to pick out the params it cares about. That makes the code more concise, but less tutorial.

Here's the code that sets up the material