2
0
Эх сурвалжийг харах

Invert if the matrix scale is negative

Garrett Johnson 6 жил өмнө
parent
commit
4e2b663ebd

+ 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,