UNPKG

@google/model-viewer

Version:

Easily display interactive 3D models on the web and in AR!

31 lines (25 loc) 868 B
import {PixelFormat, Texture, TextureDataType, TextureFilter, WebGLRenderer, WebGLRenderTarget, WebGLRenderTargetCube} from 'three'; export interface CubemapGeneratorOptions { resolution?: number; generateMipmaps?: boolean; minFilter?: TextureFilter; magFilter?: TextureFilter; } export class CubemapGenerator { constructor(renderer: WebGLRenderer); public fromEquirectangular( texture: Texture, options?: CubemapGeneratorOptions): WebGLRenderTargetCube; } export interface EquirectangularToCubeGeneratorOptions { resolution?: number; format?: PixelFormat; type?: TextureDataType; } export class EquirectangularToCubeGenerator { public renderTarget: WebGLRenderTargetCube; constructor( sourceTexture: Texture, options: EquirectangularToCubeGeneratorOptions) update(renderer: WebGLRenderer): Texture; dispose(): void; }