I have a use case in which I am trying to load a GLTF file which is compressed using DRACO-Compression. I am able to run it using plain javascript but I am facing issues integrating the loader with ReactJs.
What I am doing:
我得到的错误 - DracoDecoderModule 未定义
在我的应用程序中,这就是我导入的方式:
import DRACOLoader from './DRACOLoader'
DRACOLoader.setDecoderPath('./draco/')
Run Code Online (Sandbox Code Playgroud)