gpu-curtains
    Preparing search index...

    Basic HDR loader class. This loader is not intended to be used as is, but is used internally by the EnvironmentMap class.

    Allow to load an HDR file from an URI and returns a HDRImageData object containing the Float32Array data alongside width, height and other useful information.

    const hdrLoader = new HDRLoader()
    const hdr = await hdrLoader.loadFromUrl('path/to/environment.hdr')

    // assuming `renderer` is a valid Renderer
    const envTexture = new Texture(renderer, {
    label: 'Environment texture',
    name: 'envTexture',
    visibility: ['fragment'],
    format: 'rgba16float',
    fixedSize: {
    width: hdr.width,
    height: hdr.height,
    },
    })

    envTexture.uploadData({
    data: hdr.data,
    })
    Index

    Constructors

    Methods

    Constructors

    Methods