three.js

    xiaoxiao2021-09-09  121

    当使用THREE.LensFlare来创建带png图片时,会出现

    WebGL: INVALID_OPERATION: copyTexImage2D: framebuffer is incompatible format 

    WebGL: too many errors, no more errors will be reported to the console for this context. 

    等警告,如下图所示:

    这是由于在渲染器中没有将alpha打开,只需要在创建渲染器时添加该参数即可,如:var renderer = new THREE.WebGLRenderer({ alpha: true }); 然后在运行即可。

    转载请注明原文地址: https://ju.6miu.com/read-677514.html

    最新回复(0)