From a78ba9b343a4a2c8e2e4ecad71cd612ad632c3db Mon Sep 17 00:00:00 2001 From: sazzadulalambd Date: Tue, 23 Jun 2026 00:36:43 +0600 Subject: [PATCH] perf: preload 3D assets and fix mesh material hex code formatting in HeroBackground3D --- src/components/ui/3d/HeroBackground3D.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/ui/3d/HeroBackground3D.tsx b/src/components/ui/3d/HeroBackground3D.tsx index 92dfc94..85c452f 100644 --- a/src/components/ui/3d/HeroBackground3D.tsx +++ b/src/components/ui/3d/HeroBackground3D.tsx @@ -14,6 +14,9 @@ import { import * as THREE from 'three'; import { OBJLoader } from 'three-stdlib'; +useLoader.preload(OBJLoader, '/aerox.obj'); +useLoader.preload(THREE.TextureLoader, '/jaiben.png'); + const ACCENT = '#00bc84'; const ACCENT_BRIGHT = '#10b981'; @@ -138,7 +141,7 @@ function Battery({ position, scale = 1, rotation = [0, 0, 0] }: { position: [num {/* Handle */} - + {/* Glowing Indicator Light */}