Skip to content

Latest commit

 

History

History

shadowmap

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Shadow mapping + fog + point light as second light source example

shadowmap

Html5 demo

  • Press and hold left mouse button to camera rorate.
  • Press and hold right mouse button to change direction of light source.
  • Middle click to spawn a dice.

LowPoly Models and texture credits:

  • Wall_Modular.dae
  • Arch.dae
  • Table_Big.dae
  • Skull.dae

by @Quaternius under CC0 1.0 Universal (CC0 1.0)

  • barrel2.dae
  • die.dae

and textures dice.png, marbl.png, props_texture.png, wood1.png by Igor 'dragosha' Suntsev under CC0 1.0 Universal (CC0 1.0)

stonewall1.png from openGL examples


Based on @jhonny.goransson shadow mapping example

also thanks to @Pkeod for smooth shadows example and @aglitchman for the fog shader code.