mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-09-19 12:06:07 +08:00
Sync with upstream (Issue #30).
Recompiled tier1 and mathlib for all platforms will come in next commit.
This commit is contained in:
@ -228,7 +228,7 @@ int IntersectTriangleWithPlaneBarycentric( const Vector& org, const Vector& edge
|
||||
{
|
||||
pIntersection[ptIdx].x = - ( orgDotNormal - plane.w + edgeVDotNormal) /
|
||||
( edgeUDotNormal - edgeVDotNormal);
|
||||
pIntersection[ptIdx].y = 1.0f - pIntersection[ptIdx].x;;
|
||||
pIntersection[ptIdx].y = 1.0f - pIntersection[ptIdx].x;
|
||||
if ((pIntersection[ptIdx].x >= 0.0f) && (pIntersection[ptIdx].x <= 1.0f) &&
|
||||
(pIntersection[ptIdx].y >= 0.0f) && (pIntersection[ptIdx].y <= 1.0f))
|
||||
++ptIdx;
|
||||
|
Reference in New Issue
Block a user