Inheritance: Lighting →
A custom lighting implementation based on Tiled-Lighting that overwrites the default implementation in WebGPURenderer.
const lighting = new TiledLighting();
renderer.lighting = lighting; // set lighting system
TiledLighting is an addon, and must be imported explicitly, see Installation#Addons.
import { TiledLighting } from 'three/addons/lighting/TiledLighting.js';
Constructs a new lighting system.
Creates a new tiled lights node for the given array of lights.
This method is called internally by the renderer and must be overwritten by all custom lighting implementations.
lights
The render object.
Overrides: Lighting#createNode
Returns: The tiled lights node.