SUNAG 9 年之前
父節點
當前提交
2327ea017c
共有 1 個文件被更改,包括 2 次插入2 次删除
  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 );