Skip to content

Commit

Permalink
update rl-loadout-lib to 0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Longi94 committed Nov 21, 2019
1 parent 437a7c1 commit 43e326e
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 13 deletions.
49 changes: 38 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@
"dependencies": {
"lodash.debounce": "^4.0.8",
"moment": "^2.24.0",
"pngjs": "^3.4.0",
"react-full-screen": "^0.2.4",
"rl-loadout-lib": "^0.1.4",
"rl-loadout-lib": "^0.3.0",
"styled-components": "^4.4.1"
},
"devDependencies": {
Expand Down
7 changes: 6 additions & 1 deletion src/builders/SceneBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,12 @@ const defaultSceneBuilder = async (
dracoLoader.setDecoderPath('/draco/')
gltfLoader.setDRACOLoader(dracoLoader)

const config = new RocketConfig({gltfLoader, loadingManager, textureFormat: TextureFormat.PNG})
const config = new RocketConfig({
gltfLoader,
loadingManager,
textureFormat: TextureFormat.PNG,
useCompressedModels: true
})
const manager = new RocketAssetManager(config)
const bodyPromises = playerInfo.map(player => loadRlLoadout(manager, player, defaultLoadouts))

Expand Down

0 comments on commit 43e326e

Please sign in to comment.