浏览代码

Invert if the matrix scale is negative

Garrett Johnson 6 年之前
父节点
当前提交
4e2b663ebd
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      examples/js/loaders/LDrawLoader.js

+ 6 - 0
examples/js/loaders/LDrawLoader.js

@@ -1263,6 +1263,12 @@ THREE.LDrawLoader = ( function () {
 
 						}
 
+						if ( matrix.determinant() < 0 ) {
+
+							bfcInverted = ! bfcInverted;
+
+						}
+
 						subobjects.push( {
 							material: material,
 							matrix: matrix,