Shadows

Using the stencil buffer to create shadows

Built using JavaScript, HTML5, Canvas, WebGL

  • 241 views
  • 1 comments

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:
    https://bugzilla.mozilla.org/show_bug.cgi?id=648883

Get the Source Code

Download the Source 15.63 KB · ZIP File

Browse the Source

This demo is released under the Apache license.

More by tankworld