RawNodeMaterial.js 608 B

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