An Interactive Introduction to OpenGL Programming
An Interactive Introduction to OpenGL Programming
An Interactive Introduction to OpenGL Programming
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