Files
blitzkit/packages/website/src/components/HelpingSpotLight.tsx
T

20 lines
436 B
TypeScript
Raw Normal View History

2025-08-28 18:23:02 -05:00
import type { SpotLightProps } from '@react-three/fiber';
2025-08-28 17:59:31 -05:00
2025-08-28 18:23:02 -05:00
interface Props extends SpotLightProps {
2025-08-28 17:59:31 -05:00
debug?: boolean;
}
2025-08-28 18:23:02 -05:00
export function HelpingSpotLight({ debug, ...props }: Props) {
2025-08-28 17:59:31 -05:00
return (
<>
{debug && (
<mesh position={props.position}>
<icosahedronGeometry args={[0.1, 2]} />
<meshBasicMaterial color={props.color} />
</mesh>
)}
<spotLight {...props} />
</>
);
}