File: RectAreaLightTexturesLib.md | Updated: 11/15/2025
Texture library for RectAreaLight. This class holds the LTC BRDF data in data textures for further use in the renderer.
Reference: Real-Time Polygonal-Light Shading with Linearly Transformed Cosines by Eric Heitz, Jonathan Dupuy, Stephen Hill and David Neubelt. Code.
NOTE: This is a temporary location for the BRDF approximation texture data based off of Eric Heitz's work (see citation). BRDF data for RectAreaLight is currently approximated using a precomputed texture of roughly 80kb in size. The hope is to find a better way to include the large texture data before including the full RectAreaLight implementation in the main build files.
RectAreaLightTexturesLib is an addon, and must be imported explicitly, see Installation#Addons.
import { RectAreaLightTexturesLib } from 'three/addons/lights/RectAreaLightTexturesLib.js';
The first LTC FP32 data texture.
Default is null.
The second LTC FP32 data texture.
Default is null.
The first LTC FP16 data texture.
Default is null.
The second LTC FP16 data texture.
Default is null.
Inits the texture library.