@needle-tools/engine
Version:
Needle Engine is a web-based runtime for 3D apps. It runs on your machine for development with great integrations into editors like Unity or Blender - and can be deployed onto any device! It is flexible, extensible and networking and XR are built-in.
9 lines (8 loc) • 485 B
TypeScript
import { Texture, WebGLRenderer } from "three";
/**
* Loads a PMREM texture from the given URL. This also supports the ultra-fast preprocessed environment maps (PMREM) format.
* @param url The URL of the PMREM texture to load.
* @param renderer The WebGLRenderer to use for loading the texture.
* @returns A promise that resolves to the loaded texture or null if loading failed.
*/
export declare function loadPMREM(url: string, renderer: WebGLRenderer): Promise<Texture | null>;