소스 검색

Change the clear color variable name.

oguzeroglu 7 년 전
부모
커밋
898225fe82
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      examples/js/postprocessing/UnrealBloomPass.js

+ 2 - 2
examples/js/postprocessing/UnrealBloomPass.js

@@ -14,7 +14,7 @@ THREE.UnrealBloomPass = function ( resolution, strength, radius, threshold ) {
 	this.resolution = ( resolution !== undefined ) ? new THREE.Vector2( resolution.x, resolution.y ) : new THREE.Vector2( 256, 256 );
 
 	// create color only once here, reuse it later inside the render function
-	this.reusableColor = new THREE.Color( 0, 0, 0 );
+	this.clearColor = new THREE.Color( 0, 0, 0 );
 
 	// render targets
 	var pars = { minFilter: THREE.LinearFilter, magFilter: THREE.LinearFilter, format: THREE.RGBAFormat };
@@ -192,7 +192,7 @@ THREE.UnrealBloomPass.prototype = Object.assign( Object.create( THREE.Pass.proto
 		var oldAutoClear = renderer.autoClear;
 		renderer.autoClear = false;
 
-		renderer.setClearColor( this.reusableColor, 0 );
+		renderer.setClearColor( this.clearColor, 0 );
 
 		if ( maskActive ) renderer.context.disable( renderer.context.STENCIL_TEST );