Ver Fonte

MeshLambertMaterial warning fixed for teapot demo

MeshLambertMaterial does not have shading properties thus leading to a warning in the console.
Ruofei Du há 9 anos atrás
pai
commit
d50f2a0ff0
1 ficheiros alterados com 1 adições e 1 exclusões
  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 } );
 
-				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 } );