PhongNodeMaterial.js 741 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. 'position'
  28. ] );
  29. export { PhongNodeMaterial };