提交 05211e70 编写于 作者: M Mr.doob

Updated builds.

上级 dad93b39
......@@ -6896,7 +6896,16 @@ THREE.EventDispatcher.prototype = {
positions[ c * 3 + 2 ]
);
var intersectionPoint = localRay.intersectTriangle( vA, vB, vC, material.side !== THREE.DoubleSide );
if ( material.side === THREE.BackSide ) {
var intersectionPoint = localRay.intersectTriangle( vC, vB, vA, true );
} else {
var intersectionPoint = localRay.intersectTriangle( vA, vB, vC, material.side !== THREE.DoubleSide );
}
if ( intersectionPoint === null ) continue;
......@@ -6950,7 +6959,16 @@ THREE.EventDispatcher.prototype = {
positions[ c * 3 + 2 ]
);
var intersectionPoint = localRay.intersectTriangle( vA, vB, vC, material.side !== THREE.DoubleSide );
if ( material.side === THREE.BackSide ) {
var intersectionPoint = localRay.intersectTriangle( vC, vB, vA, true );
} else {
var intersectionPoint = localRay.intersectTriangle( vA, vB, vC, material.side !== THREE.DoubleSide );
}
if ( intersectionPoint === null ) continue;
......@@ -6996,7 +7014,15 @@ THREE.EventDispatcher.prototype = {
b = vertices[ face.b ];
c = vertices[ face.c ];
var intersectionPoint = localRay.intersectTriangle( a, b, c, material.side !== THREE.DoubleSide );
if ( material.side === THREE.BackSide ) {
var intersectionPoint = localRay.intersectTriangle( c, b, a, true );
} else {
var intersectionPoint = localRay.intersectTriangle( a, b, c, material.side !== THREE.DoubleSide );
}
if ( intersectionPoint === null ) continue;
......
因为 它太大了无法显示 source diff 。你可以改为 查看blob
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册