Skip to content

Commit

Permalink
Main: SceneManager - annotate mesh name in instance batch
Browse files Browse the repository at this point in the history
  • Loading branch information
paroj committed Jul 28, 2024
1 parent 80ebd27 commit 197c511
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions OgreMain/src/OgreSceneManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1625,6 +1625,8 @@ static PolygonMode derivePolygonMode(const Pass* pass, const Renderable* rend, c
void SceneManager::renderInstancedObject(const RenderableList& rends, const Pass* pass, bool lightScissoringClipping,
bool doLightIteration, const LightList* manualLightList)
{
OgreGpuEventScope(static_cast<SubEntity*>(rends.front())->getParent()->getName());

mAutoParamDataSource->setCurrentRenderable(rends.front());
// override: this is passed through the instance buffer
mAutoParamDataSource->setWorldMatrices(&Affine3::IDENTITY, 1);
Expand Down

0 comments on commit 197c511

Please sign in to comment.