html52.com
我爱小程序-开发者交流社区

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

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


不支持通过

canvas.getContext('webgl',{

    stencil : true,

preserveDrawingBuffer: true

});

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


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


谢谢.

网友回复

Link:

你好,目前仅支持 antialias、preserveDrawingBuffer、antialiasSamples 三个参数。详见 https://mp.weixin.qq.com/debug/wxagame/dev/document/render/canvas/Canvas.getContext.html?t=201818


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

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

真正的个人免签约支付接口

云免签H5支付