2
0
Эх сурвалжийг харах

Merge pull request #21329 from gonnavis/ExamplesSAOMagFilterTypo

Examples: Remove superfluous texture settings in (S)SAO pass.
Mr.doob 4 жил өмнө
parent
commit
e7807a1a56

+ 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.maxFilter = 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.maxFilter = 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.maxFilter = 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.maxFilter = NearestFilter;
 
 	this.beautyRenderTarget = new WebGLRenderTarget( this.width, this.height, {
 		minFilter: LinearFilter,