Computer Science, asked by bhushan9878, 8 months ago

What components make up a light source in OpenGL?

Answers

Answered by Anonymous
4

Explanation:

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.

Answered by DevendraLal
0

What components make up a light source in OpenGL?

  • The OpenGL lighting model divides illumination into four distinct components: emissive, ambient, diffuse, and specular lighting. Each of the four components is calculated separately and then combined together.
  1. GL AMBIENT: (0.0, 0.0, 0.0, 1.0)
  2. GL SPOT DIRECTION: (0.0, 0.0, -1.0)
  3. GL POSITION:  (0.0, 0.0, 1.0, 0.0)
  • OpenGL simulates light and illumination as though it were made up of red, green, and blue components.

Similar questions