Back to Three Js

TiledLightsNode

docs/pages/TiledLightsNode.html

latest827 B
Original Source

Import

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

import { tiledLights } from 'three/addons/tsl/lighting/TiledLightsNode.js';

Constructor

new TiledLightsNode( maxLights : number, tileSize : number )

Constructs a new tiled lights node.

| maxLights |

The maximum number of lights.

Default is 1024.

| | tileSize |

The tile size.

Default is 32.

|

Properties

.maxLights : number

The maximum number of lights.

Default is 1024.

.tileSize : number

The tile size.

Default is 32.

Source

examples/jsm/tsl/lighting/TiledLightsNode.js