Using the stencil buffer to create shadows

Built using JavaScript, HTML5, Canvas, WebGL


More About This Demo From The Author

This demo uses the stencil buffer, color mask and depth mask to create shadows.

1 comment so far

Log in to add your own.

  1. jgilbert said,

    This demo relies on getting a stencil buffer without requesting one. If a demo does not explicitly request a stencil buffer on context creation, the WebGL spec default is not to supply one.

    More information is available in the bug:

About this Demo

Download the Source 15.63 KB · ZIP File

Browse the Source

This demo is released under the Apache license.

More by tankworld