Files
healer-man/src/avatar/ProceduralAvatar.tsx
T
2026-08-14 15:56:39 -04:00

19 lines
653 B
TypeScript

export function ProceduralAvatar({ accent = "#78a679" }: { accent?: string }) {
return (
<group>
<mesh position={[0, 0.82, 0]}>
<capsuleGeometry args={[0.31, 0.72, 6, 12]} />
<meshStandardMaterial color="#476a50" roughness={0.82} />
</mesh>
<mesh position={[0, 1.52, 0]}>
<sphereGeometry args={[0.26, 16, 12]} />
<meshStandardMaterial color="#b9a073" roughness={0.76} />
</mesh>
<mesh position={[0, 1.1, -0.24]} rotation={[0.22, 0, 0]}>
<boxGeometry args={[0.52, 0.7, 0.16]} />
<meshStandardMaterial color={accent} roughness={0.95} />
</mesh>
</group>
);
}