小游戏创建WebGL时, 不支持设置参数,导致stencil不可用
发布于 6 年前 作者 liaojun 16816 次浏览 来自 问答

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

不支持通过

canvas.getContext(‘webgl’,{

    stencil : true,

preserveDrawingBuffer: true

});

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

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

谢谢.

1 回复

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


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

回到顶部