![]() ![]() Void glMaterial( GLenum face, GLenum pname, TYPE param ) Void glMaterial v( GLenum face, GLenum pname, const TYPE* param ) See "Changing Material Parameters with glColor*()" later in this chapter for more information. By default, calling glColor3f () has no effect when lighting is enabled, but applications often change this default behavior. It's important to note that OpenGL lighting doesn't use the current primary color instead, it uses the current material colors. See Plate 1 and the Materials example code at the OpenGL ® Distilled Web site for examples of different material effects.Īs mentioned in Chapter 2, "Drawing Primitives," glColor3f () sets the current primary color. Applications change OpenGL material parameters to emulate different colored materials, shiny and flat materials, high-gloss materials such as a pool ball, or broad-gloss materials such as brass. Material parameters specify how a surface reflects light.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |