Skip to content

ahillss/webgl2-stencil-shadow-volumes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebGL Stencil Shadow Volumes

Demo (requires WebGL2).

Original idea was from Mikola Lysneko, and was implemented using the general algorithm described in GPU Gems 3, chapter 11.

Features

  • point light
  • runs on the gpu instead of cpu
  • can do zpass/zfail, back/front faced shadows
  • works on meshes with holes

Controls

  • w/d to move forward/backward
  • a/d to strafe
  • q/e to move up/down
  • hold left mouse down to look around, also hold down ctrl while doing this to spin the model

TODO

  • add directional light

About

GPU based stencil shadow volumes without geometry shaders

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages