Browse Source

Added tonemapping

WestLangley 6 years ago
parent
commit
3b8b2facc7
1 changed files with 6 additions and 1 deletions
  1. 6 1
      examples/webgl_materials_physical_clearcoat.html

+ 6 - 1
examples/webgl_materials_physical_clearcoat.html

@@ -66,6 +66,7 @@
 						var textureLoader = new THREE.TextureLoader();
 
 						var diffuse = textureLoader.load( "textures/carbon/Carbon.png" );
+						diffuse.encoding = THREE.sRGBEncoding;
 						diffuse.wrapS = THREE.RepeatWrapping;
 						diffuse.wrapT = THREE.RepeatWrapping;
 						diffuse.repeat.x = 10;
@@ -183,7 +184,11 @@
 
 			//
 
-			renderer.gammaInput = true;
+			renderer.toneMapping = THREE.ACESFilmicToneMapping;
+			renderer.toneMappingExposure = 1;
+
+			//
+
 			renderer.gammaOutput = true;
 
 			//