Import
HDRLoader is an addon, and must be imported explicitly, see Installation#Addons.
import { HDRLoader } from 'three/addons/loaders/HDRLoader.js';
Constructor
new HDRLoader( manager : LoadingManager )
Constructs a new RGBE/HDR loader.
| manager |
The loading manager. |
Properties
.type : HalfFloatType | FloatType
The texture type.
Default is HalfFloatType.
Methods
.parse( buffer : ArrayBuffer ) : DataTextureLoader~TexData
Parses the given RGBE texture data.
| buffer |
The raw texture data. |
- Overrides: DataTextureLoader#parse
- Returns: An object representing the parsed texture data.
.setDataType( value : HalfFloatType | FloatType ) : HDRLoader
Sets the texture type.
| value |
The texture type to set. |
- Returns: A reference to this loader.