UNPKG

@14islands/r3f-scroll-rig

Version:

Progressively enhance any React website with WebGL using @react-three/fiber

8 lines (7 loc) 310 B
import { RefObject } from 'react'; import { Texture } from 'three'; declare function useImageAsTexture(imgRef: RefObject<HTMLImageElement>, { initTexture, premultiplyAlpha }?: { initTexture?: boolean | undefined; premultiplyAlpha?: string | undefined; }): Texture; export { useImageAsTexture };