如何开启WebGL的 stencil和preserveDrawingBuffer
发布于 5 年前 作者 nalong 13244 次浏览 来自 问答

目前小游戏似乎只支持  canvas.getContext('webgl')  的基本方式来创建webgl上下文


无法通过

canvas.getContext('webgl',{

   stencil : true,

   preserveDrawingBuffer: true

});

方式 开启 stencil 和 preserveDrawingBuffer .


请问要如何 开启 stencil 和 preserveDrawingBuffer 呢?


谢谢了

1 回复

你好,目前仅支持 antialias、preserveDrawingBuffer、antialiasSamples 三个参数。详见 https://image.wxopen.club/content_c2672e4c-3751-11ea-adcc-a0999b08aadb.png 。


部分特性未完全实现,后续我们会支持。

回到顶部