Skip to content

Latest commit

 

History

History

16-perVertexLight

Per Vertex Light

How to compile
  • Compile the program.
mkdir -p perVertexLight.app/Contents/MacOS

clang++ -o perVertexLight.app/Contents/MacOS/perVertexLight *.mm -framework Cocoa -framework QuartzCore -framework OpenGL
Keyboard Shortcuts
  • Press Esc key to quit.
  • Press F or f to toggle full-screen mode.
  • Press l key to enable lighting.
Preview
  • Per Vertex Light Disabled

    perVertexLightDisabled

  • Per Vertex Light Enabled

    perVertexLightEnabled