evanw/lightgl.js — pull request #14 by marcosscriven (2013-04-30 09:16:05+00:00)
Title: Add option to attach a stencil buffer to textures. 

While I was implementing an image-based CSG algorithm in WebGL, I needed to be able to render to a texture with stencil tests.

I've added a boolean option to add a stencil to the texture, which of course defaults to the original behaviour if not set.

Have also updated the associated documentation comment.