📄 threejs/Addons/Lights/RectAreaLightUniformsLib

File: RectAreaLightUniformsLib.md | Updated: 11/15/2025


title: RectAreaLightUniformsLib category: Addons layout: docs

RectAreaLightUniformsLib

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.

Code Example

RectAreaLightUniformsLib.init();

Import

RectAreaLightUniformsLib is an addon, and must be imported explicitly, see Installation#Addons.

import { RectAreaLightUniformsLib } from 'three/addons/lights/RectAreaLightUniformsLib.js';

Static Methods

.init()

Inits the uniform library required when using rect area lights.

Source

examples/jsm/lights/RectAreaLightUniformsLib.js