MeshToonNodeMaterial.js 658 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. import NodeMaterial from './NodeMaterial.js';
  2. import ToonLightingModel from '../../nodes/functions/ToonLightingModel.js';
  3. import { MeshToonMaterial } from '../MeshToonMaterial.js';
  4. const _defaultValues = /*@__PURE__*/ new MeshToonMaterial();
  5. class MeshToonNodeMaterial extends NodeMaterial {
  6. static get type() {
  7. return 'MeshToonNodeMaterial';
  8. }
  9. constructor( parameters ) {
  10. super();
  11. this.isMeshToonNodeMaterial = true;
  12. this.lights = true;
  13. this.setDefaultValues( _defaultValues );
  14. this.setValues( parameters );
  15. }
  16. setupLightingModel( /*builder*/ ) {
  17. return new ToonLightingModel();
  18. }
  19. }
  20. export default MeshToonNodeMaterial;
粤ICP备19079148号