Lighting

TiledLighting

A custom lighting implementation based on Tiled-Lighting that overwrites the default implementation in WebGPURenderer.

Code Example

const lighting = new TiledLighting();
renderer.lighting = lighting; // set lighting system

Import

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

import { TiledLighting } from 'three/addons/lighting/TiledLighting.js';

Constructor

new TiledLighting()

Constructs a new lighting system.

Classes

TiledLighting

Methods

.createNode( lights : Array.<Light> ) : TiledLightsNode

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.

Source

examples/jsm/lighting/TiledLighting.js