SpriteNodeMaterial.js 481 B

1234567891011121314151617
  1. /**
  2. * @author sunag / http://www.sunag.com.br/
  3. */
  4. THREE.SpriteNodeMaterial = function () {
  5. this.node = new THREE.SpriteNode();
  6. THREE.NodeMaterial.call( this, this.node, this.node );
  7. };
  8. THREE.SpriteNodeMaterial.prototype = Object.create( THREE.NodeMaterial.prototype );
  9. THREE.SpriteNodeMaterial.prototype.constructor = THREE.SpriteNodeMaterial;
  10. THREE.NodeMaterial.addShortcuts( THREE.SpriteNodeMaterial.prototype, 'node',
  11. [ 'color', 'alpha', 'transform', 'spherical' ] );