Jim Helman (jimh++at++surreal)
Thu, 16 Feb 95 20:51:59 -0800
Materials should only be created when necessary as changing them is
somewhat expensive. If you only want different colors, you should
do this with one material that has pfMtlColorMode set to allow the
color in the pfGeoSet specify the color to be used for lighting.
For example, pfMtlColorMode(mtl, PFMTL_FRONT, PFMTL_CMODE_AD) causes
the pfGeoSet color(s) to be used instead of the ambient and diffuse
material colors for lighting.
As the sample programs in /usr/src/Performer/src/pguide/libpf/progs
indicate, for lighting you also need to have created and applied a
pfLightModel and have lighting pfEnabled.
rgds,
-jim helman
jimh++at++surreal.asd.sgi.com
415/390-1151
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:50:58 PDT