Skip to content

Commit f14559a

Browse files
fix big bug in MDI construction
1 parent 8bcd1de commit f14559a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples_tests/22.RaytracedAO/Renderer.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ Renderer::InitializationData Renderer::initSceneObjects(const SAssetBundle& mesh
415415
queueUpMDI(call);
416416
}
417417
for (auto& cull : cullData)
418-
cull.drawID = meshbufferIDToDrawID[cull.globalObjectID];
418+
cull.drawID = meshbufferIDToDrawID[cull.drawID];
419419
}
420420
m_cullPushConstants.currentCommandBufferIx = 0x0u;
421421
m_cullPushConstants.maxDrawCount = mdiData.size();
@@ -1024,8 +1024,8 @@ void Renderer::render(nbl::ITimer* timer)
10241024
const auto currentView = camera->getViewMatrix();
10251025
auto properEquals = [](const auto& lhs, const auto& rhs) -> bool
10261026
{
1027-
const float rotationTolerance = 1.005f;
1028-
const float positionTolerance = 1.001f;
1027+
const float rotationTolerance = 1.01f;
1028+
const float positionTolerance = 1.005f;
10291029
for (auto r=0; r<3u; r++)
10301030
for (auto c=0; c<4u; c++)
10311031
{

examples_tests/22.RaytracedAO/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ int main()
273273
core::vector3df_SIMD ptu[] = {core::vectorSIMDf().set(camera->getPosition()),camera->getTarget(),camera->getUpVector()};
274274
auto proj = camera->getProjectionMatrix();
275275

276-
camera = smgr->addCameraSceneNodeFPS(nullptr, 100.f, core::min(extent.X, extent.Y, extent.Z) * 0.0002f);
276+
camera = smgr->addCameraSceneNodeFPS(nullptr, 80.f, core::min(extent.X, extent.Y, extent.Z) * 0.00005f);
277277
camera->setPosition(ptu[0].getAsVector3df());
278278
camera->setTarget(ptu[1].getAsVector3df());
279279
camera->setUpVector(ptu[2]);

0 commit comments

Comments
 (0)