move light target up

This commit is contained in:
tresabhi committed 2026-08-11 09:56:58 -05:00
1 parent dcda627518
commit 1a17d607fb
1 file changed
+6
@@ -87,8 +87,13 @@ export function Lighting() {
] as const; ] as const;
const intensity = lerp(INTENSITY_0, INTENSITY_1, x); const intensity = lerp(INTENSITY_0, INTENSITY_1, x);
const light = useRef<SpotLight>(null!);
// useHelper(light, SpotLightHelper);
return ( return (
<spotLight <spotLight
ref={light}
key={index} key={index}
position={position} position={position}
intensity={intensity} intensity={intensity}
@@ -97,6 +102,7 @@ export function Lighting() {
decay={1} decay={1}
color="#ffffff" color="#ffffff"
angle={0} angle={0}
target-position={[0, 1.5, 0]}
/> />
); );
})} })}