This represents a texture coming from an HDR input.
The only supported format is currently panorama picture stored in RGBE format. Example of such files can be found on HDRLib: http://hdrlib.com/
Instantiates an HDRTexture from the following parameters.
The location of the HDR raw data (Panorama stored in RGBE format)
The scene the texture will be used in
The cubemap desired size (the more it increases the longer the generation will be)
Forces to not generate the mipmap if true
Specifies whether you want to extract the polynomial harmonics during the generation process
Specifies if the texture will be use in gamma or linear space (the PBR material requires those texture in linear space, but the standard material would require them in Gamma space)
Reserved flag for internal use.
Gets or sets the center of the bounding box associated with the cube texture It must define where the camera used to render the texture was set
Gets or sets the size of the bounding box associated with the cube texture When defined, the cubemap will switch to local mode
The texture coordinates mode. As this texture is stored in a cube format, please modify carefully.
Gets wether or not the texture is blocking during loading.
Gets whether or not the texture contains RGBD data.
An event triggered when the texture is disposed.
Gets texture matrix rotation angle around Y axis radians.
The texture URL.
Reads the pixels stored in the webgl texture and returns them as an ArrayBuffer. This will returns an RGBA array buffer containing either in values (0-255) or float values (0-1) depending of the underlying buffer type.
The face of the texture to read (in case of cube texture)
The LOD level of the texture to read (in case of Mip Maps)
The Array buffer containing the pixels data.
Generated using TypeDoc