mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: more progress
This commit is contained in:
1 parent
aa763f65d1
commit
5d397de766
4 files changed
+22
-19
No files matched your search
@@ -0,0 +1,20 @@
|
||||
import type { SpotLightProps } from '@react-three/fiber';
|
||||
|
||||
interface Props extends SpotLightProps {
|
||||
debug?: boolean;
|
||||
}
|
||||
|
||||
export function HelpingSpotLight({ debug, ...props }: Props) {
|
||||
return (
|
||||
<>
|
||||
{debug && (
|
||||
<mesh position={props.position}>
|
||||
<icosahedronGeometry args={[0.1, 2]} />
|
||||
<meshBasicMaterial color={props.color} />
|
||||
</mesh>
|
||||
)}
|
||||
|
||||
<spotLight {...props} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user