SpriteNodeMaterial.js 518 B

12345678910111213141516171819
  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. this.type = "SpriteNodeMaterial";
  8. };
  9. THREE.SpriteNodeMaterial.prototype = Object.create( THREE.NodeMaterial.prototype );
  10. THREE.SpriteNodeMaterial.prototype.constructor = THREE.SpriteNodeMaterial;
  11. THREE.NodeMaterial.addShortcuts( THREE.SpriteNodeMaterial.prototype, 'node',
  12. [ 'color', 'alpha', 'transform', 'spherical' ] );