Skip to content

Commit e736f85

Browse files
committed
feat: add spotlight to enhance avatar visibility
1 parent 49fdba9 commit e736f85

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

src/components/Avatar.jsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,17 @@ export function Avatar(props) {
8484

8585
return (
8686
<group {...props} ref={group} dispose={null}>
87+
{/* Spotlight focused on avatar face */}
88+
<spotLight
89+
position={[0, 2, 1]}
90+
angle={0.3}
91+
penumbra={0.5}
92+
intensity={2}
93+
color="#ffffff"
94+
target-position={[0, 1.5, 0]}
95+
castShadow={false}
96+
/>
97+
8798
<group rotation-x={-Math.PI / 2}>
8899
<primitive object={nodes.Hips} />
89100
<skinnedMesh

0 commit comments

Comments
 (0)