Răsfoiți Sursa

WebGLDeferredRenderer: forgot to remove explicit gamma->linear color conversions in examples.

alteredq 12 ani în urmă
părinte
comite
f9e3e2de73

+ 0 - 2
examples/webgl_lights_deferred_animation.html

@@ -183,9 +183,7 @@
 					var light = new THREE.PointLight( 0xffffff, 2.0, distance );
 
 					c.set( Math.random(), Math.random(), Math.random() ).normalize();
-
 					light.color.setRGB( c.x, c.y, c.z );
-					light.color.convertGammaToLinear();
 
 					scene.add( light );
 					lights.push( light );

+ 0 - 2
examples/webgl_lights_deferred_pointlights.html

@@ -178,9 +178,7 @@
 					var light = new THREE.PointLight( 0xffffff, 2.0, distance );
 
 					c.set( Math.random(), Math.random(), Math.random() ).normalize();
-
 					light.color.setRGB( c.x, c.y, c.z );
-					light.color.convertGammaToLinear();
 
 					scene.add( light );
 					lights.push( light );