BlinnShininessExponentNode.js 749 B

123456789101112131415161718192021222324252627
  1. /**
  2. * @author sunag / http://www.sunag.com.br/
  3. */
  4. THREE.BlinnShininessExponentNode = function () {
  5. THREE.TempNode.call( this, 'fv1' );
  6. };
  7. THREE.BlinnShininessExponentNode.prototype = Object.create( THREE.TempNode.prototype );
  8. THREE.BlinnShininessExponentNode.prototype.constructor = THREE.BlinnShininessExponentNode;
  9. THREE.BlinnShininessExponentNode.prototype.nodeType = "BlinnShininessExponent";
  10. THREE.BlinnShininessExponentNode.prototype.generate = function ( builder, output ) {
  11. if ( builder.isCache( 'clearCoat' ) ) {
  12. return builder.format( 'Material_ClearCoat_BlinnShininessExponent( material )', this.type, output );
  13. } else {
  14. return builder.format( 'Material_BlinnShininessExponent( material )', this.type, output );
  15. }
  16. };