Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use custom mtlloader to fix obj texture loading #4272

Merged
merged 2 commits into from
Apr 15, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
use custom mtlloader
  • Loading branch information
sashankaryal committed Apr 15, 2024
commit 55f8c2100b494b6c394ea70139b5f9660e090e6b
2 changes: 1 addition & 1 deletion app/packages/looker-3d/src/fo3d/mesh/Obj.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { useLoader } from "@react-three/fiber";
import { useEffect } from "react";
import { Mesh, MeshStandardMaterial, Quaternion, Vector3 } from "three";
import { MTLLoader } from "three/examples/jsm/loaders/MTLLoader";
import { OBJLoader } from "three/examples/jsm/loaders/OBJLoader";
import { ObjAsset } from "../../hooks";
import { useMeshMaterialControls } from "../../hooks/use-mesh-material-controls";
import { MTLLoader } from "../../overrides/MtlLoader";
import { getColorFromPoolBasedOnHash } from "../../utils";

const ObjMeshDefaultMaterial = ({
Expand Down
Loading
Loading