浏览代码

SSAOShader: Lower size of kernel from 64 to 32.

Mugen87 6 年之前
父节点
当前提交
04dc35fa49
共有 2 个文件被更改,包括 2 次插入2 次删除
  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: {