Browse Source

ExamplesSAOMagFilterTypo

gonnavis 4 years ago
parent
commit
f704237006

+ 1 - 1
examples/js/postprocessing/SAOPass.js

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

+ 1 - 1
examples/js/postprocessing/SSAOPass.js

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

+ 1 - 1
examples/jsm/postprocessing/SAOPass.js

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

+ 1 - 1
examples/jsm/postprocessing/SSAOPass.js

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