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,7 +119,7 @@ function Battery({ position, scale = 1, rotation = [0, 0, 0] }: { position: [num
{/* Main Battery Body */} {/* Main Battery Body */}
<mesh position={[0, 0, 0]} castShadow receiveShadow> <mesh position={[0, 0, 0]} castShadow receiveShadow>
<boxGeometry args={[0.6, 1.2, 0.4]} /> <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> </mesh>
{/* Top Cap */} {/* Top Cap */}
@@ -129,9 +129,9 @@ function Battery({ position, scale = 1, rotation = [0, 0, 0] }: { position: [num
</mesh> </mesh>
{/* Handle */} {/* 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]} /> <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> </mesh>
{/* Glowing Indicator Light */} {/* Glowing Indicator Light */}