Browse Source

SSAOShader: Lower size of kernel from 64 to 32.

Mugen87 6 years ago
parent
commit
04dc35fa49
2 changed files with 2 additions and 2 deletions
  1. 1 1
      examples/js/postprocessing/SSAOPass.js
  2. 1 1
      examples/js/shaders/SSAOShader.js

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

@@ -15,7 +15,7 @@ THREE.SSAOPass = function ( scene, camera, width, height ) {
 	this.scene = scene;
 
 	this.kernelRadius = 8;
-	this.kernelSize = 64;
+	this.kernelSize = 32;
 	this.kernel = [];
 	this.noiseTexture = null;
 	this.output = 0;

+ 1 - 1
examples/js/shaders/SSAOShader.js

@@ -11,7 +11,7 @@ THREE.SSAOShader = {
 
 	defines: {
 		"PERSPECTIVE_CAMERA": 1,
-		"KERNEL_SIZE": 64
+		"KERNEL_SIZE": 32
 	},
 
 	uniforms: {