first commit

This commit is contained in:
2026-06-24 09:48:54 +02:00
commit 41e62ddcad
33739 changed files with 4266226 additions and 0 deletions
+40
View File
@@ -0,0 +1,40 @@
import ChainMap from './ChainMap.js';
import RenderList from './RenderList.js';
class RenderLists {
constructor( lighting ) {
this.lighting = lighting;
this.lists = new ChainMap();
}
get( scene, camera ) {
const lists = this.lists;
const keys = [ scene, camera ];
let list = lists.get( keys );
if ( list === undefined ) {
list = new RenderList( this.lighting, scene, camera );
lists.set( keys, list );
}
return list;
}
dispose() {
this.lists = new ChainMap();
}
}
export default RenderLists;