SUNAG 9 years ago
parent
commit
2327ea017c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      examples/js/nodes/postprocessing/NodePass.js

+ 2 - 2
examples/js/nodes/postprocessing/NodePass.js

@@ -6,6 +6,8 @@ THREE.NodePass = function() {
 
 	THREE.ShaderPass.call( this );
 
+	this.textureID = 'renderTexture';
+
 	this.fragment = new THREE.RawNode( new THREE.ScreenNode() );
 
 	this.node = new THREE.NodeMaterial();
@@ -13,8 +15,6 @@ THREE.NodePass = function() {
 
 	this.build();
 
-	this.textureID = 'renderTexture';
-
 };
 
 THREE.NodePass.prototype = Object.create( THREE.ShaderPass.prototype );