node-ejs-renderer/node_modules/three/examples/jsm/nodes/materials/ShadowNodeMaterial.js
2024-06-09 13:55:01 -04:00

35 lines
623 B
JavaScript

import NodeMaterial, { addNodeMaterial } from './NodeMaterial.js';
import ShadowMaskModel from '../functions/ShadowMaskModel.js';
import { ShadowMaterial } from 'three';
const defaultValues = new ShadowMaterial();
class ShadowNodeMaterial extends NodeMaterial {
constructor( parameters ) {
super();
this.isShadowNodeMaterial = true;
this.lights = true;
this.setDefaultValues( defaultValues );
this.setValues( parameters );
}
setupLightingModel( /*builder*/ ) {
return new ShadowMaskModel();
}
}
export default ShadowNodeMaterial;
addNodeMaterial( 'ShadowNodeMaterial', ShadowNodeMaterial );