Skip to content

Commit

Permalink
up glb
Browse files Browse the repository at this point in the history
  • Loading branch information
kiloking committed Nov 5, 2024
1 parent 1a9c349 commit 8462aba
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file added public/sources/._rwp.glb
Binary file not shown.
Binary file added public/sources/rwp.glb
Binary file not shown.
4 changes: 2 additions & 2 deletions src/Pages/Front/Ar/TtxcScene.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,13 @@ function TtxcScene() {
SceneLoader.ImportMesh(
"",
`${process.env.PUBLIC_URL + "/sources/"}`,
"rock.glb",
"rwp.glb",
scene,
function (newMeshes) {
// Set the target of the camera to the first imported mesh
// camera.target = newMeshes[0];
newMeshes[0].scaling = new Vector3(2, 1, 2);
newMeshes[0].position = new Vector3(0, -1.5, 0);
newMeshes[0].position = new Vector3(0, -1.65, 0);
var a = scene.getMeshByName("RockFlyPt1");
var b = scene.getMeshByName("RockFlyPt2");
console.log(a.material);
Expand Down

0 comments on commit 8462aba

Please sign in to comment.