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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Types of Lights<br />

• <strong>OpenGL</strong> supports two types of Lights<br />

– Local (Point) light sources<br />

– Infinite (Directional) light sources<br />

• Type of light controlled by w coordinate<br />

w = 0<br />

w ≠ 0<br />

Infinite Light directed<br />

along<br />

Local Light positioned at<br />

( x y z)<br />

( )<br />

x y z<br />

w<br />

w<br />

w

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

Saved successfully!

Ooh no, something went wrong!