Docsity

Light Types and Shading Models - Computer Graphics - Lecture Slides, Slides of Computer Graphics

Partial preview of the text

Download Light Types and Shading Models - Computer Graphics - Lecture Slides and more Slides Computer Graphics in PDF only on Docsity!

Computer

Graphics

Lecture 26

Mathematics of

Lighting and

Shading

Part II

Light Types

Now that we have a way to find the light hitting a surface, we're going to need some lights!

  1. Parallel Lights (or Directional Lights)

  2. Point Lights

  3. Spotlights

Parallel Lights (or

Directional Lights)

All of the light rays that reach the object are parallel (hence the name).

The standard use of parallel lights is to simulate the sun.

While it's not infinitely far away, 93 million miles is good enough!

whereas point lights and spotlights involve vector subtractions and a normalization per vertex.

Parallel light sources are the easiest and therefore fastest to process.

One step better than directional lights are point lights.

They represent infinitesimally small points that emit light.

we can have the intensity falloff based on the inverse squared distance from the light, which is how real lights work.