Skip to main content

Function: loadStereoImageAsTextures()

loadStereoImageAsTextures(url): Promise<Texture<unknown, TextureEventMap>[]>

Defined in: src/stereo/utils.ts:40

Loads a stereo image from a URL and returns two THREE.Texture objects, one for the left eye and one for the right eye.

Parameters

url

string

The URL of the stereo image.

Returns

Promise<Texture<unknown, TextureEventMap>[]>

A promise that resolves to an array containing the left and right eye textures.