• Home
  • About
    • Muru Chen photo

      Muru Chen

      Game programmer, Game designer, photographer & Interactive media artist

    • Learn More
    • Email
    • LinkedIn
    • Github
  • Games
  • OpenGL
  • Interactive Arts

Basic Lightings

Reading time ~1 minute

Demo

image screenshot of basic lightings

Main Principles and processes

Ambient Light

Add an ambient light for the whole cube.

image screenshot of basic lightings

Diffuse Light

simulates the directional impact a light object has on an object.

image screenshot of basic lightings

Specular light

simulates the bright spot of a light that appears on shiny objects.

Download codes


OpenGLC++ Share Tweet +1