Load Rocket League assets into three.js. This library is closely tied with Rocket Loadout as the code was originally part of it. It uses GLTF models and TGA textures created and stored for the website.
The library currently works with Three.js r110. You should use that since there are usually a lot of breaking changes between Three.js releases. Models are DRACO compressed, you must provide the decoder.
npm install rl-loadout-lib
;;;;// You must provide the GLTFLoader to avoid issues with multiple instances of three.js and webgl context;;dracoLoader.setDecoderPath'/draco/';gltfLoader.setDRACOLoaderdracoLoader;;;;
You can use the
const gltfLoader = ;const dracoLoader = ;dracoLoader;gltfLoader;const config =gltfLoader;const manager = config;...