MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

COMPUTER GRAPHICS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Can you specify the location of a light source in OpenGL?
A
Yes
B
No
C
Either A or B
D
None of the above
Explanation: 

Detailed explanation-1: -In OpenGL, and most graphics systems, lights can be at a point in space or at infinity. We’ll always use a 4D vector to describe the position of a light. The vector has values x, y, z, and w. If w is 1.0, we are defining a light at a point in space.

Detailed explanation-2: -The OpenGL lighting model considers the lighting to be divided into four independent components: emissive, ambient, diffuse, and specular. All four components are computed independently and then added together.

There is 1 question to complete.