浏览代码

VRMLLoader: More fixes.

Mr.doob 10 年之前
父节点
当前提交
89a9dba22d
共有 1 个文件被更改,包括 1 次插入7 次删除
  1. 1 7
      examples/js/loaders/VRMLLoader.js

+ 1 - 7
examples/js/loaders/VRMLLoader.js

@@ -625,13 +625,7 @@ THREE.VRMLLoader.prototype = {
 
 						var groundGeometry = new THREE.SphereGeometry( radius, segments, segments, 0, 2 * Math.PI, 0.5 * Math.PI, 1.5 * Math.PI );
 
-						var groundMaterial = new THREE.MeshBasicMaterial( { color: 'white', vertexColors: THREE.VertexColors } );
-
-						groundMaterial.side = THREE.BackSide;
-
-						groundMaterial.fog = false;
-
-						groundMaterial.color = new THREE.Color();
+						var groundMaterial = new THREE.MeshBasicMaterial( { color: 0xffffff, fog: false, side: THREE.BackSide, vertexColors: THREE.VertexColors } );
 
 						paintFaces( groundGeometry, radius, data.groundAngle, data.groundColor, false );