style: update 3D battery model material colors and adjust handle position

This commit is contained in:
sazzadulalambd
2026-06-22 17:04:33 +06:00
parent 7d320ac4a3
commit 79d32a9e83

View File

@@ -119,9 +119,9 @@ function Battery({ position, scale = 1, rotation = [0, 0, 0] }: { position: [num
{/* Main Battery Body */}
<mesh position={[0, 0, 0]} castShadow receiveShadow>
<boxGeometry args={[0.6, 1.2, 0.4]} />
<meshStandardMaterial color="#1e293b" roughness={0.4} metalness={0.8} />
<meshStandardMaterial color="#41694cff" roughness={0.4} metalness={0.8} />
</mesh>
{/* Top Cap */}
<mesh position={[0, 0.65, 0]} castShadow receiveShadow>
<boxGeometry args={[0.62, 0.1, 0.42]} />
@@ -129,9 +129,9 @@ function Battery({ position, scale = 1, rotation = [0, 0, 0] }: { position: [num
</mesh>
{/* Handle */}
<mesh position={[0, 0.8, 0]} castShadow receiveShadow>
<mesh position={[0, 0.70, 0]} castShadow receiveShadow>
<torusGeometry args={[0.15, 0.04, 16, 32, Math.PI]} />
<meshStandardMaterial color="#cbd5e1" roughness={0.2} metalness={0.9} />
<meshStandardMaterial color="#0d7a33ff" roughness={0.2} metalness={0.9} />
</mesh>
{/* Glowing Indicator Light */}
@@ -145,7 +145,7 @@ function Battery({ position, scale = 1, rotation = [0, 0, 0] }: { position: [num
<planeGeometry args={[0.35, 0.35]} />
<meshBasicMaterial map={logoTexture} transparent={true} />
</mesh>
{/* Back Logo Decal Plane */}
<mesh position={[0, 0, -0.201]} rotation={[0, Math.PI, 0]}>
<planeGeometry args={[0.35, 0.35]} />