小游戏创建WebGL时, 不支持设置参数,导致stencil不可用

发布于 7 年前作者 liaojun16931 次浏览最后编辑 7 年前来自 ask

目前小游戏只支持  canvas.getContext(‘webgl’)  的基本方式

不支持通过

canvas.getContext(‘webgl’,{

    stencil : true,

preserveDrawingBuffer: true

});

方式设置参数, 导致webgl的某些功能无法使用.

希望小游戏早日支持这种方式,

谢谢.

1 回复
qianxiulan
qianxiulan1 楼5 年前

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


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