Using the stencil buffer to create shadows

建立方法 JavaScript, HTML5, Canvas, WebGL

  • 659 次观看
  • 1 个评论


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

到目前为止有 1 个评论


  1. jgilbert 说:

    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:


下载源代码 15.63 KB · ZIP 格式

Browse the Source

此演示发布于 Apache 授权之下。

tankworld 的更多作品