Demo: Remove useless line

This commit is contained in:
Lynix 2020-01-25 19:15:45 +01:00
parent b50691d71e
commit 5dd37ed3d8
1 changed files with 0 additions and 1 deletions

View File

@ -596,7 +596,6 @@ void SpacebattleExample::Enter(Ndk::StateMachine& fsm)
auto colorPtr = mapper.GetComponentPtr<Nz::Color>(Nz::ParticleComponent_Color); auto colorPtr = mapper.GetComponentPtr<Nz::Color>(Nz::ParticleComponent_Color);
auto lifePtr = mapper.GetComponentPtr<float>(Nz::ParticleComponent_Life); auto lifePtr = mapper.GetComponentPtr<float>(Nz::ParticleComponent_Life);
float velFactor = std::pow(0.9f, elapsedTime / 0.1f);
for (unsigned int i = startId; i <= endId; ++i) for (unsigned int i = startId; i <= endId; ++i)
colorPtr[i].a = static_cast<Nz::UInt8>(Nz::Clamp(lifePtr[i] * 255.f, 0.f, 255.f)); colorPtr[i].a = static_cast<Nz::UInt8>(Nz::Clamp(lifePtr[i] * 255.f, 0.f, 255.f));
})); }));