Initial project import
This commit is contained in:
17
node_modules/@react-three/drei/core/useEnvironment.d.ts
generated
vendored
Normal file
17
node_modules/@react-three/drei/core/useEnvironment.d.ts
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
import { Texture, Loader, CubeTexture, ColorSpace } from 'three';
|
||||
import { PresetsType } from '../helpers/environment-assets';
|
||||
export type EnvironmentLoaderProps = {
|
||||
files?: string | string[];
|
||||
path?: string;
|
||||
preset?: PresetsType;
|
||||
extensions?: (loader: Loader) => void;
|
||||
colorSpace?: ColorSpace;
|
||||
};
|
||||
export declare function useEnvironment({ files, path, preset, colorSpace, extensions, }?: Partial<EnvironmentLoaderProps>): Texture | CubeTexture;
|
||||
export declare namespace useEnvironment {
|
||||
var preload: (preloadOptions?: EnvironmentLoaderPreloadOptions) => void;
|
||||
var clear: (clearOptions?: EnvironmentLoaderClearOptions) => void;
|
||||
}
|
||||
type EnvironmentLoaderPreloadOptions = Omit<EnvironmentLoaderProps, 'encoding'>;
|
||||
type EnvironmentLoaderClearOptions = Pick<EnvironmentLoaderProps, 'files' | 'preset'>;
|
||||
export {};
|
||||
Reference in New Issue
Block a user