Skip to content

Commit 9b291de

Browse files
committed
introduce tiled lighting
1 parent 73b8774 commit 9b291de

File tree

8 files changed

+698
-27
lines changed

8 files changed

+698
-27
lines changed

examples/files.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,7 @@
339339
"webgpu_lights_phong",
340340
"webgpu_lights_rectarealight",
341341
"webgpu_lights_selective",
342+
"webgpu_lights_tiled",
342343
"webgpu_lines_fat_wireframe",
343344
"webgpu_lines_fat",
344345
"webgpu_loader_gltf",
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import * as THREE from 'three';
2+
import { tiledLights } from '../tsl/lighting/TiledLightsNode.js';
3+
4+
export class TiledLighting extends THREE.Lighting {
5+
6+
constructor() {
7+
8+
super();
9+
10+
}
11+
12+
createNode( lights = [] ) {
13+
14+
return tiledLights().setLights( lights );
15+
16+
}
17+
18+
}

0 commit comments

Comments
 (0)