Showcase: Draw skeleton
This commit is contained in:
parent
b37af6da31
commit
d7ad5cc846
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue