first commit

This commit is contained in:
2025-08-19 10:19:29 +08:00
commit 3b61e84a7f
3014 changed files with 2640574 additions and 0 deletions

View File

@ -0,0 +1,27 @@
import AnalyticLightNode from './AnalyticLightNode.js';
import { addLightNode } from './LightsNode.js';
import { addNodeClass } from '../core/Node.js';
import { AmbientLight } from 'three';
class AmbientLightNode extends AnalyticLightNode {
constructor( light = null ) {
super( light );
}
setup( { context } ) {
context.irradiance.addAssign( this.colorNode );
}
}
export default AmbientLightNode;
addNodeClass( 'AmbientLightNode', AmbientLightNode );
addLightNode( AmbientLight, AmbientLightNode );