Fixed debugdraw drawFrustum near plane under non-homogeneous NDC. Closes #1299. (#3746)

This commit is contained in:
Branimir Karadžić
2026-06-08 22:38:02 -07:00
committed by GitHub
parent bd0137f3fb
commit 24c37e6eca

View File

@@ -1650,7 +1650,7 @@ struct DebugDrawEncoderImpl
void drawFrustum(const float* _viewProj)
{
bx::Plane planes[6] = { bx::InitNone, bx::InitNone, bx::InitNone, bx::InitNone, bx::InitNone, bx::InitNone };
buildFrustumPlanes(planes, _viewProj);
buildFrustumPlanes(planes, _viewProj, bgfx::getCaps()->homogeneousDepth);
const bx::Vec3 points[8] =
{