You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
623 B

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 );