Capítulo 110 de 859
A custom lighting implementation that batches supported analytic lights into uniform arrays so light count changes do not recompile materials.
const lighting = new DynamicLighting( { maxPointLights: 64 } );
renderer.lighting = lighting;
Constructor
| Signature |
|---|
new DynamicLighting( options : Object ) |
Methods
| Method | Description |
|---|---|
.createNode( lights : Array.<Light> ) : DynamicLightsNode | Creates a new dynamic lights node for the given array of lights. |
.getNode( scene : Scene ) : LightsNode | Returns a lights node for the given scene. |