StandardNodeMaterial.js 679 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. import { StandardNode } from './nodes/StandardNode.js';
  2. import { NodeMaterial } from './NodeMaterial.js';
  3. import { NodeUtils } from '../core/NodeUtils.js';
  4. class StandardNodeMaterial extends NodeMaterial {
  5. constructor() {
  6. const node = new StandardNode();
  7. super( node, node );
  8. this.type = 'StandardNodeMaterial';
  9. }
  10. }
  11. NodeUtils.addShortcuts( StandardNodeMaterial.prototype, 'fragment', [
  12. 'color',
  13. 'alpha',
  14. 'roughness',
  15. 'metalness',
  16. 'reflectivity',
  17. 'clearcoat',
  18. 'clearcoatRoughness',
  19. 'clearcoatNormal',
  20. 'normal',
  21. 'emissive',
  22. 'ambient',
  23. 'light',
  24. 'shadow',
  25. 'ao',
  26. 'environment',
  27. 'mask',
  28. 'position',
  29. 'sheenColor'
  30. ] );
  31. export { StandardNodeMaterial };