ソースを参照

Update babylon.mesh.ts

jahow 10 年 前
コミット
ee2a66e5ec
1 ファイル変更1 行追加1 行削除
  1. 1 1
      src/Mesh/babylon.mesh.ts

+ 1 - 1
src/Mesh/babylon.mesh.ts

@@ -1386,7 +1386,7 @@
             	    var position = circleVector.scale(radius).add(offset);
             	    var textureCoordinate = new Vector2(circleVector.x * textureScale.x + 0.5, circleVector.z * textureScale.y + 0.5);
             		geometry_data.positions.push(position.x, position.y, position.z);
-            		geometry_data.normals.push(0, 1, 0);
+            		geometry_data.normals.push(0, isTop ? 1 : -1, 0);
             	    geometry_data.uvs.push(textureCoordinate.x, textureCoordinate.y);
             	}
             	// Indices