UNPKG

@react-three/gpu-pathtracer

Version:

⚡️ A React abstraction for the popular three-gpu-pathtracer.

23 lines (22 loc) 799 B
import { ElementProps, Vector2 } from '@react-three/fiber'; import { default as React } from 'react'; import { WebGLPathTracer } from 'three-gpu-pathtracer'; type PathtracerProps = ElementProps<typeof WebGLPathTracer> & { minSamples?: number; samples?: number; tiles?: Vector2; bounces?: number; enabled?: boolean; resolutionFactor?: number; renderPriority?: number; filteredGlossyFactor?: number; }; interface PathtracerAPI { update: () => void; reset: () => void; renderer: WebGLPathTracer; pathtracer: WebGLPathTracer; } export declare const Pathtracer: React.ForwardRefExoticComponent<Omit<React.PropsWithChildren<PathtracerProps>, "ref"> & React.RefAttributes<WebGLPathTracer>>; export declare function usePathtracer(): PathtracerAPI; export {};