mirror of
https://github.com/tengge1/ShadowEditor.git
synced 2026-01-25 15:08:11 +00:00
26 lines
495 B
JavaScript
26 lines
495 B
JavaScript
/**
|
|
* @author sunag / http://www.sunag.com.br/
|
|
*/
|
|
|
|
THREE.ResolutionNode = function( renderer ) {
|
|
|
|
THREE.Vector2Node.call( this );
|
|
|
|
this.requestUpdate = true;
|
|
|
|
this.renderer = renderer;
|
|
|
|
};
|
|
|
|
THREE.ResolutionNode.prototype = Object.create( THREE.Vector2Node.prototype );
|
|
THREE.ResolutionNode.prototype.constructor = THREE.ResolutionNode;
|
|
|
|
THREE.ResolutionNode.prototype.updateFrame = function( delta ) {
|
|
|
|
var size = this.renderer.getSize();
|
|
|
|
this.x = size.width;
|
|
this.y = size.height;
|
|
|
|
};
|