Search⌘ K
AI Features

HDR Images as Textures

Explore how to load and apply HDR images as textures in Three.js to capture a wide range of luminance. Understand how tone mapping settings affect rendering and learn to use bump maps to add depth and detail to 3D models, enhancing realism in your scenes.

Aside from these normal images, Three.js also supports HDR images.

Loading HDR images as textures

An HDR imageHigh Dynamic Range captures a higher range of luminance levels than standard images, and can more closely match what we see with the human eye. Three.js supports the EXR and RGBE formats. If we’ve got an HDR image, we can fine-tune how Three.js renders the HDR image since an HDR image contains more luminance information than can be shown on a display. This can be done by setting the following properties in THREE.WebGLRenderer:

  • ...