mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
move light target up
This commit is contained in:
1 parent
dcda627518
commit
1a17d607fb
1 file changed
+6
+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]}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
|
|||||||
Reference in new issue
Block a user