修改静态资源文件夹位置

This commit is contained in:
Teo
2025-07-29 09:37:57 +08:00
parent ed996ee7f4
commit daff686afc
1465 changed files with 11 additions and 4 deletions

View File

@ -0,0 +1,34 @@
import NodeMaterial, { addNodeMaterial } from './NodeMaterial.js';
import PhongLightingModel from '../functions/PhongLightingModel.js';
import { MeshLambertMaterial } from 'three';
const defaultValues = new MeshLambertMaterial();
class MeshLambertNodeMaterial extends NodeMaterial {
constructor( parameters ) {
super();
this.isMeshLambertNodeMaterial = true;
this.lights = true;
this.setDefaultValues( defaultValues );
this.setValues( parameters );
}
setupLightingModel( /*builder*/ ) {
return new PhongLightingModel( false ); // ( specular ) -> force lambert
}
}
export default MeshLambertNodeMaterial;
addNodeMaterial( 'MeshLambertNodeMaterial', MeshLambertNodeMaterial );