MeshStandardNodeMaterial.js 591 B

12345678910111213141516171819202122232425262728293031
  1. import { MeshStandardNode } from './nodes/MeshStandardNode.js';
  2. import { NodeMaterial } from './NodeMaterial.js';
  3. import { NodeUtils } from '../core/NodeUtils.js';
  4. class MeshStandardNodeMaterial extends NodeMaterial {
  5. constructor() {
  6. const node = new MeshStandardNode();
  7. super( node, node );
  8. this.type = 'MeshStandardNodeMaterial';
  9. }
  10. }
  11. NodeUtils.addShortcuts( MeshStandardNodeMaterial.prototype, 'properties', [
  12. 'color',
  13. 'roughness',
  14. 'metalness',
  15. 'map',
  16. 'normalMap',
  17. 'normalScale',
  18. 'metalnessMap',
  19. 'roughnessMap',
  20. 'envMap'
  21. ] );
  22. export { MeshStandardNodeMaterial };