Computer Science, asked by ishank2087, 1 year ago

What are different types of light sources supported by opengl?

Answers

Answered by varnikamunads
3

Answer:

Explanation:

Understand how real-world lighting conditions are approximated by OpenGL

Render illuminated objects by defining the desired light sources and lighting model

Define the material properties of the objects being illuminated

Manipulate the matrix stack to control the position of light source

Answered by Jaswindar9199
0

QUESTION:-

What are different types of light sources supported by OpenGL?

ANSWER:-

In the OpenGL model, the sources of light have an impact only when there are surfaces that consume and reflect light.

Different types of light sources supported by OpenGL are ambient, diffuse, and specular.

  • Ambient illumination is a light source that is dispersed vastly by the environment which is why its direction is difficult to determine. It appears to reach from all directions. Backlighting in a cabin has a vast ambient element since a maximum of the light that reaches to the eye has initially bounced off many surfaces.

  • The Diffuse light source is the light that appears from one direction, so they are brighter when it reaches squarely down on a surface than if it barely bounces off the surface. Once it hits on a surface it gets scattered equally in all directions, so it seems equally sharp, no matter where the eye is looking.

  • The Specular light source comes from a specific direction, and it inclines to bounce off the surface in a selected direction. A well-collimated beam bouncing off a good quality glass generates almost 90% specular reflection.

#SPJ2

Similar questions