PhongNodeMaterial.js 634 B

1234567891011121314151617181920212223242526272829303132
  1. /**
  2. * @author sunag / http://www.sunag.com.br/
  3. */
  4. THREE.PhongNodeMaterial = function () {
  5. var node = new THREE.PhongNode();
  6. THREE.NodeMaterial.call( this, node, node );
  7. this.type = "PhongNodeMaterial";
  8. };
  9. THREE.PhongNodeMaterial.prototype = Object.create( THREE.NodeMaterial.prototype );
  10. THREE.PhongNodeMaterial.prototype.constructor = THREE.PhongNodeMaterial;
  11. THREE.NodeMaterial.addShortcuts( THREE.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. 'transform'
  25. ] );