diff --git a/packages/website-ue/src/components/TankopediaSandbox/index.tsx b/packages/website-ue/src/components/TankopediaSandbox/index.tsx
index 0ab085262..9e3b93535 100644
--- a/packages/website-ue/src/components/TankopediaSandbox/index.tsx
+++ b/packages/website-ue/src/components/TankopediaSandbox/index.tsx
@@ -1,5 +1,6 @@
import { OrbitControls } from "@react-three/drei";
import { Canvas, useLoader } from "@react-three/fiber";
+import { Mesh, MeshStandardMaterial } from "three";
import { GLTFLoader } from "three-stdlib";
import styles from "./index.module.css";
@@ -27,7 +28,16 @@ function Content() {
);
gltf.scene.traverse((child) => {
+ if (
+ child instanceof Mesh &&
+ child.material instanceof MeshStandardMaterial
+ ) {
+ // TODO: remove this hack and fix the gltf
+ child.material.vertexColors = false;
+ }
+
child.castShadow = true;
+ child.receiveShadow = true;
});
return (
@@ -36,12 +46,17 @@ function Content() {
-
-
+
+
-
+