Showcase: Draw skeleton

This commit is contained in:
SirLynix 2022-08-17 20:14:32 +02:00 committed by Jérôme Leclercq
parent b37af6da31
commit d7ad5cc846
1 changed files with 3 additions and 1 deletions

View File

@ -128,7 +128,7 @@ int main()
skinningData.outputPositions = mapper.GetComponentPtr<Nz::Vector3f>(Nz::VertexComponent::Position);
skinningData.inputPositions = skinningData.outputPositions;
Nz::SkinPosition(skinningData, 0, mapper.GetVertexCount());
Nz::SkinLinearBlend(skinningData, 0, mapper.GetVertexCount());
}*/
/*for (std::size_t i = 0; i < skeleton.GetJointCount(); ++i)
@ -394,6 +394,8 @@ int main()
playerShipBody.AddForce(Nz::Vector3f::Down() * 3.f * mass, Nz::CoordSys::Local);*/
}
Nz::DebugDrawer& debugDrawer = renderSystem.GetFramePipeline().GetDebugDrawer();
debugDrawer.DrawSkeleton(skeleton, Nz::Color::Red);
systemGraph.Update();