Chapter 5. Materials, Lights, and Shading

Materials, Lights, and Shading

As you saw in the previous chapter, all meshes (including internally created primitives and imported models) are built from geometric elements such as triangles and line segments that have their shapes defined by vertex points. For the renderer to be able to draw these elements to the view, an appearance definition similar to the line and fill style settings used in the native drawing API in Flash is required. In 3D, this definition is frequently referred to as a material, and in Away3D, it takes the form of a class instance that can be set in the material property of an individual element or global mesh ...

Get The Essential Guide to 3D in Flash now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.