Browse Source

NearestFilter is already the default value. There is no need to set.

gonnavis 4 years ago
parent
commit
0c72b87646

+ 0 - 2
examples/js/postprocessing/SAOPass.js

@@ -53,8 +53,6 @@ THREE.SAOPass = function ( scene, camera, depthTexture, useNormals, resolution )
 
 		var depthTexture = new THREE.DepthTexture();
 		depthTexture.type = THREE.UnsignedShortType;
-		depthTexture.minFilter = THREE.NearestFilter;
-		depthTexture.magFilter = THREE.NearestFilter;
 
 		this.beautyRenderTarget.depthTexture = depthTexture;
 		this.beautyRenderTarget.depthBuffer = true;

+ 0 - 2
examples/js/postprocessing/SSAOPass.js

@@ -30,8 +30,6 @@ THREE.SSAOPass = function ( scene, camera, width, height ) {
 
 	var depthTexture = new THREE.DepthTexture();
 	depthTexture.type = THREE.UnsignedShortType;
-	depthTexture.minFilter = THREE.NearestFilter;
-	depthTexture.magFilter = THREE.NearestFilter;
 
 	this.beautyRenderTarget = new THREE.WebGLRenderTarget( this.width, this.height, {
 		minFilter: THREE.LinearFilter,

+ 0 - 2
examples/jsm/postprocessing/SAOPass.js

@@ -81,8 +81,6 @@ var SAOPass = function ( scene, camera, depthTexture, useNormals, resolution ) {
 
 		var depthTexture = new DepthTexture();
 		depthTexture.type = UnsignedShortType;
-		depthTexture.minFilter = NearestFilter;
-		depthTexture.magFilter = NearestFilter;
 
 		this.beautyRenderTarget.depthTexture = depthTexture;
 		this.beautyRenderTarget.depthBuffer = true;

+ 0 - 2
examples/jsm/postprocessing/SSAOPass.js

@@ -60,8 +60,6 @@ var SSAOPass = function ( scene, camera, width, height ) {
 
 	var depthTexture = new DepthTexture();
 	depthTexture.type = UnsignedShortType;
-	depthTexture.minFilter = NearestFilter;
-	depthTexture.magFilter = NearestFilter;
 
 	this.beautyRenderTarget = new WebGLRenderTarget( this.width, this.height, {
 		minFilter: LinearFilter,