BasicNodeMaterial.js 672 B

1234567891011121314151617181920212223242526272829
  1. /**
  2. * @author sunag / http://www.sunag.com.br/
  3. * @author martinRenou / https://github.com/martinRenou
  4. */
  5. import { SimpleNode } from './nodes/SimpleNode.js';
  6. import { NodeMaterial } from './NodeMaterial.js';
  7. import { NodeUtils } from '../core/NodeUtils.js';
  8. function BasicNodeMaterial() {
  9. var node = new SimpleNode();
  10. NodeMaterial.call( this, node, node );
  11. this.type = "BasicNodeMaterial";
  12. }
  13. BasicNodeMaterial.prototype = Object.create( NodeMaterial.prototype );
  14. BasicNodeMaterial.prototype.constructor = BasicNodeMaterial;
  15. NodeUtils.addShortcuts( BasicNodeMaterial.prototype, 'fragment', [
  16. 'color',
  17. 'alpha',
  18. 'position'
  19. ] );
  20. export { BasicNodeMaterial };