ScreenNode.js 593 B

12345678910111213141516171819202122232425
  1. /**
  2. * @author sunag / http://www.sunag.com.br/
  3. */
  4. THREE.ScreenNode = function ( coord ) {
  5. THREE.TextureNode.call( this, undefined, coord );
  6. };
  7. THREE.ScreenNode.prototype = Object.create( THREE.TextureNode.prototype );
  8. THREE.ScreenNode.prototype.constructor = THREE.ScreenNode;
  9. THREE.ScreenNode.prototype.nodeType = "Screen";
  10. THREE.ScreenNode.prototype.isUnique = function () {
  11. return true;
  12. };
  13. THREE.ScreenNode.prototype.getTexture = function ( builder, output ) {
  14. return THREE.InputNode.prototype.generate.call( this, builder, output, this.getUuid(), 't', 'renderTexture' );
  15. };