Skip to content

Commit

Permalink
fixed tree shaking
Browse files Browse the repository at this point in the history
  • Loading branch information
BarthPaleologue committed Nov 8, 2023
1 parent 87ecea3 commit 30d5b79
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/ts/character.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@ import {ArcRotateCamera} from "@babylonjs/core/Cameras/arcRotateCamera";
import character from "../assets/character.glb";
import {Vector3} from "@babylonjs/core/Maths/math.vector";

import "@babylonjs/core/Animations/animatable";

import "@babylonjs/loaders/glTF/2.0/glTFLoader";
import {AbstractMesh, TransformNode} from "@babylonjs/core";
import { AbstractMesh } from "@babylonjs/core/Meshes/abstractMesh";
import { TransformNode } from "@babylonjs/core/Meshes/transformNode";

export async function createCharacterController(scene: Scene, camera: ArcRotateCamera, inputMap: Map<string, boolean>): Promise<AbstractMesh> {
const result = await SceneLoader.ImportMeshAsync("", "", character, scene);
Expand Down
2 changes: 1 addition & 1 deletion src/ts/skybox.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {Scene} from "@babylonjs/core/scene";
import {SkyMaterial} from "@babylonjs/materials";
import {Vector3} from "@babylonjs/core/Maths/math.vector";
import {MeshBuilder} from "@babylonjs/core";
import {MeshBuilder} from "@babylonjs/core/Meshes/meshBuilder";

export function createSkybox(scene: Scene, sunPosition: Vector3) {
const skyMaterial = new SkyMaterial("skyMaterial", scene);
Expand Down
3 changes: 2 additions & 1 deletion src/ts/thinInstancePatch.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {Matrix, Quaternion, Vector3} from "@babylonjs/core/Maths/math.vector";
import {Mesh} from "@babylonjs/core/Meshes/mesh";
import {TransformNode} from "@babylonjs/core";
import "@babylonjs/core/Meshes/thinInstanceMesh";
import {TransformNode} from "@babylonjs/core/Meshes/transformNode";

export class ThinInstancePatch {
private baseMesh: Mesh | null = null;
Expand Down

0 comments on commit 30d5b79

Please sign in to comment.