PhongNodeMaterial.js 631 B

12345678910111213141516171819
  1. /**
  2. * @author sunag / http://www.sunag.com.br/
  3. */
  4. THREE.PhongNodeMaterial = function () {
  5. this.node = new THREE.PhongNode();
  6. THREE.NodeMaterial.call( this, this.node, this.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, 'node',
  12. [ 'color', 'alpha', 'specular', 'shininess', 'normal', 'normalScale', 'emissive', 'ambient', 'light', 'shadow', 'ao', 'environment', 'environmentAlpha', 'transform' ] );