Skip to content

Commit

Permalink
introduce tiled lighting
Browse files Browse the repository at this point in the history
  • Loading branch information
sunag committed Oct 13, 2024
1 parent 73b8774 commit 9b291de
Show file tree
Hide file tree
Showing 8 changed files with 698 additions and 27 deletions.
1 change: 1 addition & 0 deletions examples/files.json
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,7 @@
"webgpu_lights_phong",
"webgpu_lights_rectarealight",
"webgpu_lights_selective",
"webgpu_lights_tiled",
"webgpu_lines_fat_wireframe",
"webgpu_lines_fat",
"webgpu_loader_gltf",
Expand Down
18 changes: 18 additions & 0 deletions examples/jsm/lighting/TiledLighting.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import * as THREE from 'three';
import { tiledLights } from '../tsl/lighting/TiledLightsNode.js';

export class TiledLighting extends THREE.Lighting {

constructor() {

super();

}

createNode( lights = [] ) {

return tiledLights().setLights( lights );

}

}
Loading

0 comments on commit 9b291de

Please sign in to comment.