From 316de1e7cb62ddc68ebfc60e11ebf12928e8a9f6 Mon Sep 17 00:00:00 2001 From: troublemaker52025 Date: Fri, 26 Nov 2021 11:35:09 +0800 Subject: [PATCH] fix plane dir normalize for v3.4.0 (#4069) --- native/cocos/scene/Frustum.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/native/cocos/scene/Frustum.cpp b/native/cocos/scene/Frustum.cpp index eb62abed4b..90fe858f9e 100644 --- a/native/cocos/scene/Frustum.cpp +++ b/native/cocos/scene/Frustum.cpp @@ -47,6 +47,7 @@ void Plane::define(const Vec3 &v0, const Vec3 &v1, const Vec3 &v2) { Vec3 dist; Vec3::crossProduct(dist1, dist2, &dist); + dist.normalize(); define(dist, v0); }