feat: add click to select
This commit is contained in:
@@ -216,9 +216,11 @@ void MeshRendererComponent::Render(const RenderContext& ctx) {
|
||||
GetTransform().GetWorldMatrix(),
|
||||
materialID,
|
||||
m_skinnedMesh.get(),
|
||||
jointMatricesStartIndex
|
||||
jointMatricesStartIndex,
|
||||
static_cast<std::uint32_t>(GetGameObject()->GetId())
|
||||
);
|
||||
} else {
|
||||
ctx.renderer.drawMesh(meshID, GetTransform().GetWorldMatrix(), materialID);
|
||||
ctx.renderer.drawMesh(meshID, GetTransform().GetWorldMatrix(), materialID,
|
||||
static_cast<std::uint32_t>(GetGameObject()->GetId()));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user