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

20 lines
439 B
TypeScript
Raw Normal View History

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