PhongNodeMaterial.js 750 B

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