mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 02:37:05 +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;
|
||||
const intensity = lerp(INTENSITY_0, INTENSITY_1, x);
|
||||
|
||||
const light = useRef<SpotLight>(null!);
|
||||
|
||||
// useHelper(light, SpotLightHelper);
|
||||
|
||||
return (
|
||||
<spotLight
|
||||
ref={light}
|
||||
key={index}
|
||||
position={position}
|
||||
intensity={intensity}
|
||||
@@ -97,6 +102,7 @@ export function Lighting() {
|
||||
decay={1}
|
||||
color="#ffffff"
|
||||
angle={0}
|
||||
target-position={[0, 1.5, 0]}
|
||||
/>
|
||||
);
|
||||
})}
|
||||
|
||||
Reference in new issue
Block a user