PhongNodeMaterial.js 697 B

1234567891011121314151617181920212223242526272829303132333435
  1. import { PhongNode } from './nodes/PhongNode.js';
  2. import { NodeMaterial } from './NodeMaterial.js';
  3. import { NodeUtils } from '../core/NodeUtils.js';
  4. function PhongNodeMaterial() {
  5. var node = new PhongNode();
  6. NodeMaterial.call( this, node, node );
  7. this.type = 'PhongNodeMaterial';
  8. }
  9. PhongNodeMaterial.prototype = Object.create( NodeMaterial.prototype );
  10. PhongNodeMaterial.prototype.constructor = PhongNodeMaterial;
  11. NodeUtils.addShortcuts( PhongNodeMaterial.prototype, 'fragment', [
  12. 'color',
  13. 'alpha',
  14. 'specular',
  15. 'shininess',
  16. 'normal',
  17. 'emissive',
  18. 'ambient',
  19. 'light',
  20. 'shadow',
  21. 'ao',
  22. 'environment',
  23. 'environmentAlpha',
  24. 'mask',
  25. 'position'
  26. ] );
  27. export { PhongNodeMaterial };