When OpenGL lighting computations are performed, the actual position of the light that is used is
Group of answer choices
a. Whatever was given in the "glLightfv( GL_LIGHT0, GL_POSITION,..." call times the Projection*ModelView matrix
b. Whatever was given in the "glLightfv( GL_LIGHT0, GL_POSITION,..." call
c. Whatever was given in the "glLightfv( GL_LIGHT0, GL_POSITION,..." call times the Projection matrix
d. Whatever was given in the "glLightfv( GL_LIGHT0, GL_POSITION,..." call times the ModelView matrix
ANSWER - D
OpenGL controls the position and direction of light source , glLight*() is called to specify the position.
The project matrix does not have any effect in position or direction of light.
The actual position of the light that is used is whatever was given in the "glLightfv( GL_LIGHT0, GL_POSITION,..." call times the ModelView matrix .
So, the correct option is D.
=================================END================================
Please comment if u need any other info and DO LEAVE A LIKE, it would mean a lot. Thanks :)
Get Answers For Free
Most questions answered within 1 hours.