Skip to content

Commit

Permalink
Switch to an optimized model for the environment
Browse files Browse the repository at this point in the history
  • Loading branch information
toji committed Dec 4, 2024
1 parent 9c85d85 commit e22da2e
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
camera.minOrbitX = Math.PI * -0.1;

const appSettings = {
scene: './media/models/dungeon/dungeon.glb',
scene: './media/models/dungeon/dungeon-opt.glb',
metaballMethod: 'gpuGenerated',
renderLightSprites: true,
renderEnvironment: true,
Expand Down
2 changes: 1 addition & 1 deletion js/mini-gltf2.js
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ export class Gltf2Loader {
gltf.lights.push(new Light(
light.type,
light.color,
light.intensity, //(light.intensity) / (4 * Math.PI),
(light.intensity) / (4 * Math.PI),
light.range
));
}
Expand Down
Binary file added media/models/dungeon/dungeon-opt.glb
Binary file not shown.
Binary file removed media/models/dungeon/dungeon.glb
Binary file not shown.

0 comments on commit e22da2e

Please sign in to comment.