File: RectAreaLightUniformsLib.md | Updated: 11/15/2025
This class is only relevant when using RectAreaLight with WebGLRenderer.
Before rect area lights can be used, the internal uniform library of the renderer must be enhanced with the following code.
RectAreaLightUniformsLib.init();
RectAreaLightUniformsLib is an addon, and must be imported explicitly, see Installation#Addons.
import { RectAreaLightUniformsLib } from 'three/addons/lights/RectAreaLightUniformsLib.js';
Inits the uniform library required when using rect area lights.