({ shadow, brightness }: { shadow: CoverageShadow; brightness: number })
| 960 | export type { CameraTarget }; |
| 961 | |
| 962 | function CoverageShadowEdges({ shadow, brightness }: { shadow: CoverageShadow; brightness: number }) { |
| 963 | const positions = useMemo(() => coverageShadowPositions(shadow), [shadow]); |
| 964 | return <lineSegments> |
| 965 | <bufferGeometry><bufferAttribute attach="attributes-position" args={[positions, 3]} /></bufferGeometry> |
| 966 | <lineBasicMaterial color={COVERAGE_SHADOW_COLOR} transparent opacity={Math.min(0.6, Math.max(0, brightness) * 0.28)} depthWrite={false} toneMapped={false} /> |
| 967 | </lineSegments>; |
| 968 | } |
| 969 | |
| 970 | export function GraphScene({ |
| 971 | active = true, |
nothing calls this directly
no test coverage detected