@react-three/drei
Version:
useful add-ons for react-three-fiber
9 lines (8 loc) • 426 B
TypeScript
import { ThreeElements } from '@react-three/fiber';
import * as React from 'react';
import { BufferAttribute, BufferGeometry } from 'three';
export type ComputedAttributeProps = Omit<ThreeElements['bufferAttribute'], 'args'> & {
compute: (geometry: BufferGeometry) => BufferAttribute;
name: string;
};
export declare const ComputedAttribute: ({ compute, name, ...props }: ComputedAttributeProps) => React.JSX.Element;