fix(vtk): 合并渲染前更新裁剪面-异步落地的瓦片纳入近/远裁剪范围,治瓦片到达后被切(屏幕暗带)

This commit is contained in:
gaozheng 2026-06-17 16:10:12 +08:00
parent c3f72fdc8d
commit e718336385
1 changed files with 2 additions and 0 deletions

View File

@ -116,6 +116,8 @@ void TileBasemap::requestRender() {
this, this,
[this]() { [this]() {
renderPending_ = false; renderPending_ = false;
// 渲染前更新裁剪面:把异步刚落地的瓦片纳入近/远裁剪范围,否则它们会被切(屏幕暗带)。
if (auto* ren = scene_.renderer()) ren->ResetCameraClippingRange();
if (rw_) rw_->Render(); if (rw_) rw_->Render();
}, },
Qt::QueuedConnection); Qt::QueuedConnection);