浏览代码

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

alteredq 12 年之前
父节点
当前提交
f9e3e2de73
共有 2 个文件被更改,包括 0 次插入4 次删除
  1. 0 2
      examples/webgl_lights_deferred_animation.html
  2. 0 2
      examples/webgl_lights_deferred_pointlights.html

+ 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 );