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 );