UNPKG

glodrei

Version:

useful add-ons for react-three-fiber

17 lines (16 loc) 599 B
import * as React from 'react'; import * as THREE from 'three'; import * as FIBER from '@react-three/fiber'; import { ForwardRefComponent } from '../helpers/ts-utils'; export type DecalProps = Omit<JSX.IntrinsicElements['mesh'], 'children'> & { debug?: boolean; mesh?: React.MutableRefObject<THREE.Mesh>; position?: FIBER.Vector3; rotation?: FIBER.Euler | number; scale?: FIBER.Vector3; map?: THREE.Texture; children?: React.ReactNode; polygonOffsetFactor?: number; depthTest?: boolean; }; export declare const Decal: ForwardRefComponent<DecalProps, THREE.Mesh>;