Explorar o código

MeshLambertMaterial warning fixed for teapot demo

MeshLambertMaterial does not have shading properties thus leading to a warning in the console.
Ruofei Du %!s(int64=10) %!d(string=hai) anos
pai
achega
d50f2a0ff0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 } );