This commit is contained in:
Patrick Walton 2018-12-05 16:08:16 -05:00
parent f18af6d650
commit a03a1d2058
1 changed files with 1 additions and 2 deletions

View File

@ -287,7 +287,7 @@ class App {
gl.disable(gl.BLEND); gl.disable(gl.BLEND);
// Read back stencil and dump it. // Read back stencil and dump it.
/*const totalStencilFramebufferSize = STENCIL_FRAMEBUFFER_SIZE.width * const totalStencilFramebufferSize = STENCIL_FRAMEBUFFER_SIZE.width *
STENCIL_FRAMEBUFFER_SIZE.height * 4; STENCIL_FRAMEBUFFER_SIZE.height * 4;
const stencilData = new Float32Array(totalStencilFramebufferSize); const stencilData = new Float32Array(totalStencilFramebufferSize);
gl.readPixels(0, 0, gl.readPixels(0, 0,
@ -312,7 +312,6 @@ class App {
stencilDumpCanvasContext.putImageData(stencilDumpImageData, 0, 0); stencilDumpCanvasContext.putImageData(stencilDumpImageData, 0, 0);
document.body.appendChild(stencilDumpCanvas); document.body.appendChild(stencilDumpCanvas);
//console.log(stencilData); //console.log(stencilData);
*/
// Draw opaque tiles. // Draw opaque tiles.
gl.bindFramebuffer(gl.FRAMEBUFFER, null); gl.bindFramebuffer(gl.FRAMEBUFFER, null);