小游戏不支持 WebGL THREE.js ?
656 浏览2021年01月21日作者:x777x

需求的场景描述
IDE编辑器中一切正常,真机无法预览,代码如下

const o = {}
        o.canvas = this._opt.canvas
        this.renderer = new THREE.WebGLRenderer(o)
        this.renderer.setSize(this.w, this.h)
        this.renderer.setViewport(0, 0, this.w, this.h)
        this.renderer.localClippingEnabled = true

看论坛里,解决 window.innerHeight等问题后,真机错误如下IMG_7065.PNG

希望提供的能力

提供threejs整合介入的能力?最好有个官方的介绍,编辑器中错误提示过于笼统,无法定位到代码



谢谢

最后一次编辑于 2021 年 01 月 26 日
3 条评论

相关文章

专题推荐

热门文章

热门问答