Skip to content

@tmrw-realityos/charmDocs


@tmrw-realityos/charm / HDRELoader

Class: HDRELoader

Constructors

new HDRELoader()

new HDRELoader(): HDRELoader

Returns

HDRELoader

Methods

load()

load(url): Promise<HDREnvironment>

Parameters

url: string

Returns

Promise<HDREnvironment>

Defined in

packages/charm/src/helpers/HDRELoader.ts:58


parse()

parse(buffer): null | HDREnvironment

Parse the input data and create HDREnvironment

Parameters

buffer: ArrayBuffer

Returns

null | HDREnvironment

Defined in

packages/charm/src/helpers/HDRELoader.ts:74