afterimagePass ); composer.render(sceneEl, sceneEl.camera);</script> 但是现在它抛出了这个错误 three.js:19204 Uncaught TypeError: t.onBeforeRender is not a function at
我有一个简单的2D游戏,我正在构建与Three.js。我只使用世界X和Y位置来移动物体,把它们的z位置保持在零。我使用TrackballControls与旋转禁用,以允许2D移动的相机使用右击和缩放使用鼠标轮。我现在有必要为这个游戏实施战争迷雾。,认为使用第二个带有2D上下文的画布是最方便的方法。; //Map to the zoom/position of the Three.js camera?
//Do fog drawing here..