HDR is an importer for Radiance RGBE (.hdr) images as textures. Yields a Texture2D
or
TextureCube
object.
The options property supports the following settings:
- equiToCube: This will assume the jpg contains an equirectangular texture that needs to be transformed to a cube map.
Yields a
TextureCube
object.
- cubeSize: An optional size for the cube map size.
- generateMipmaps: This will cause mipmaps to be generated. Defaults to true.
- ldr: Indicated the image should be loaded as low dynamic range (32bpp).
- exposure: The amount of stops to apply to the image. Positive values make the image brighter, negative darker.