fix(scene): LOD screen usage distance truncated to int (native platform) (#343)

* Changed the GeometryRenderer and DebugRenderer from using intrusive calls to registering callbacks (custom pipeline).

* Changed the GeometryRenderer and DebugRenderer from using intrusive calls to registering callbacks. (old pipeline)

* CI error: Function parameter names cannot be omitted.

* Move the devil string to macro

* fix(mesh): hoose index format by max index value in createMesh

* perf(pipeline): reduce render queue sort to two packed key compares (native platform).

* fix CI error caused by native/cocos/base/Utils.h

* fix(scene): LOD screen usage distance truncated to int (native platform)
This commit is contained in:
MagicX
2026-09-17 18:59:26 +08:00
committed by GitHub
parent b46553e615
commit 557b06f7e6
+1 -1
View File
@@ -60,7 +60,7 @@ float LODGroup::getScreenUsagePercentage(const Camera *camera) const {
return 0;
}
auto distance = 0;
float distance = 0.0F;
if (camera->getProjectionType() == CameraProjection::PERSPECTIVE) {
Vec3 tmp{_localBoundaryCenter};
tmp.transformMat4(_node->getWorldMatrix());