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.

Light Properties<br />

glLightfv( light, property, value );<br />

– light specifies which light<br />

• multiple lights, starting with GL_LIGHT0<br />

glGetIntegerv( GL_MAX_LIGHTS, &n );<br />

– properties<br />

• colors<br />

• position and type<br />

• attenuation

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

Saved successfully!

Ooh no, something went wrong!