StandardNodeMaterial.js 644 B

1234567891011121314151617
  1. /**
  2. * @author sunag / http://www.sunag.com.br/
  3. */
  4. THREE.StandardNodeMaterial = function() {
  5. this.node = new THREE.StandardNode();
  6. THREE.NodeMaterial.call( this, this.node, this.node );
  7. };
  8. THREE.StandardNodeMaterial.prototype = Object.create( THREE.NodeMaterial.prototype );
  9. THREE.StandardNodeMaterial.prototype.constructor = THREE.StandardNodeMaterial;
  10. THREE.NodeMaterial.addShortcuts( THREE.StandardNodeMaterial.prototype, 'node',
  11. [ 'color', 'alpha', 'roughness', 'metalness', 'reflectivity', 'clearCoat', 'clearCoatRoughness', 'normal', 'normalScale', 'emissive', 'ambient', 'light', 'shadow', 'ao', 'environment', 'transform' ] );