浏览代码

MeshLambertMaterial warning fixed for teapot demo

MeshLambertMaterial does not have shading properties thus leading to a warning in the console.
Ruofei Du 9 年之前
父节点
当前提交
d50f2a0ff0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      examples/webgl_geometry_teapot.html

+ 1 - 1
examples/webgl_geometry_teapot.html

@@ -134,7 +134,7 @@
 
 
 				flatMaterial = new THREE.MeshPhongMaterial( { color: materialColor, specular: 0x0, shading: THREE.FlatShading, side: THREE.DoubleSide } );
 				flatMaterial = new THREE.MeshPhongMaterial( { color: materialColor, specular: 0x0, shading: THREE.FlatShading, side: THREE.DoubleSide } );
 
 
-				gouraudMaterial = new THREE.MeshLambertMaterial( { color: materialColor, shading: THREE.SmoothShading, side: THREE.DoubleSide } );
+				gouraudMaterial = new THREE.MeshLambertMaterial( { color: materialColor, side: THREE.DoubleSide } );
 
 
 				phongMaterial = new THREE.MeshPhongMaterial( { color: materialColor, shading: THREE.SmoothShading, side: THREE.DoubleSide } );
 				phongMaterial = new THREE.MeshPhongMaterial( { color: materialColor, shading: THREE.SmoothShading, side: THREE.DoubleSide } );