瀏覽代碼

Merge pull request #19390 from Mugen87/dev45

BokehShader: Fix maxblur default value.
Mr.doob 5 年之前
父節點
當前提交
72b8e0f185
共有 3 個文件被更改,包括 7 次插入7 次删除
  1. 1 1
      examples/js/shaders/BokehShader.js
  2. 1 1
      examples/jsm/shaders/BokehShader.js
  3. 5 5
      examples/webgl_postprocessing_dof.html

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

@@ -20,7 +20,7 @@ THREE.BokehShader = {
 		"focus": { value: 1.0 },
 		"aspect": { value: 1.0 },
 		"aperture": { value: 0.025 },
-		"maxblur": { value: 1.0 },
+		"maxblur": { value: 0.01 },
 		"nearClip": { value: 1.0 },
 		"farClip": { value: 1000.0 },
 

+ 1 - 1
examples/jsm/shaders/BokehShader.js

@@ -22,7 +22,7 @@ var BokehShader = {
 		"focus": { value: 1.0 },
 		"aspect": { value: 1.0 },
 		"aperture": { value: 0.025 },
-		"maxblur": { value: 1.0 },
+		"maxblur": { value: 0.01 },
 		"nearClip": { value: 1.0 },
 		"farClip": { value: 1000.0 },
 

+ 5 - 5
examples/webgl_postprocessing_dof.html

@@ -136,8 +136,8 @@
 				var effectController = {
 
 					focus: 500.0,
-					aperture:	5,
-					maxblur:	1.0
+					aperture: 5,
+					maxblur: 0.01
 
 				};
 
@@ -152,7 +152,7 @@
 				var gui = new GUI();
 				gui.add( effectController, "focus", 10.0, 3000.0, 10 ).onChange( matChanger );
 				gui.add( effectController, "aperture", 0, 10, 0.1 ).onChange( matChanger );
-				gui.add( effectController, "maxblur", 0.0, 3.0, 0.025 ).onChange( matChanger );
+				gui.add( effectController, "maxblur", 0.0, 0.01, 0.001 ).onChange( matChanger );
 				gui.close();
 
 				matChanger();
@@ -214,8 +214,8 @@
 
 				var bokehPass = new BokehPass( scene, camera, {
 					focus: 1.0,
-					aperture:	0.025,
-					maxblur:	1.0,
+					aperture: 0.025,
+					maxblur: 0.01,
 
 					width: width,
 					height: height