Docsity

Lights and Materials - Computer Graphics - Lecture Slides, Slides of Computer Graphics

Partial preview of the text

Download Lights and Materials - Computer Graphics - Lecture Slides and more Slides Computer Graphics in PDF only on Docsity!

Computer

Graphics

Lecture 25

LIGHTS AND

MATERIALS

First, we need a source of illumination, typically in the form of a light source in our scene.

  • Lights can also have attenuation, which means that their intensity is a function of the distance from the light to the surface.
  • but that's more in the implementation rather than the mathematics of lighting effects.
  • Two types of phenomena are important in lighting calculations:
  • and the second is the effect of light as it gets absorbed, transmitted, and scattered by interacting with the actual material itself
  • Materials are typically richer in their descriptions in an effort to mimic the effects seen in real life, light – Material surface interactions.
  • These colors are the

ambient, diffuse,

specular, and emissive

colors, with ambient and

specular frequently

grouped together

  • and emissive specified

only for objects that

generate light

themselves.

Ambient lighting

  • This is the color of the

object when there's no

particular light, just the

general environmental

illumination.

Diffuse lighting

  • The diffuse light is the light of the surface if the surface were perfectly matte.