فهرست منبع

Examples: Reduced webgl_tonemapping blurriness.

Mr.doob 2 سال پیش
والد
کامیت
f3b1f55d6b
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. BIN
      examples/screenshots/webgl_tonemapping.jpg
  2. 2 2
      examples/webgl_tonemapping.html

BIN
examples/screenshots/webgl_tonemapping.jpg


+ 2 - 2
examples/webgl_tonemapping.html

@@ -43,7 +43,7 @@
 			const params = {
 			const params = {
 				exposure: 1.0,
 				exposure: 1.0,
 				toneMapping: 'ACESFilmic',
 				toneMapping: 'ACESFilmic',
-				blurriness: 1
+				blurriness: 0.3
 			};
 			};
 
 
 			const toneMappingOptions = {
 			const toneMappingOptions = {
@@ -87,7 +87,7 @@
 				);
 				);
 
 
 				scene = new THREE.Scene();
 				scene = new THREE.Scene();
-				scene.backgroundBlurriness = 1;
+				scene.backgroundBlurriness = params.blurriness;
 
 
 				camera = new THREE.PerspectiveCamera( 45, window.innerWidth / window.innerHeight, 0.25, 20 );
 				camera = new THREE.PerspectiveCamera( 45, window.innerWidth / window.innerHeight, 0.25, 20 );
 				camera.position.set( - 1.8, 0.6, 2.7 );
 				camera.position.set( - 1.8, 0.6, 2.7 );