BlinnShininessExponentNode.js 784 B

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