18.07.2014 Views

An Interactive Introduction to OpenGL Programming

An Interactive Introduction to OpenGL Programming

An Interactive Introduction to OpenGL Programming

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Material Properties<br />

• Define the surface properties of a primitive<br />

glMaterialfv( face, property, value );<br />

GL_DIFFUSE<br />

GL_SPECULAR<br />

GL_AMBIENT<br />

GL_EMISSION<br />

GL_SHININESS<br />

Base color<br />

Highlight Color<br />

Low-light Color<br />

Glow Color<br />

Surface Smoothness<br />

– separate materials for front and back

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!