firecamp_gpu.h 572 B

12345678910111213141516171819202122232425
  1. #pragma once
  2. #include <QVector3D>
  3. #include <QVector4D>
  4. #include <cstdint>
  5. namespace Render::GL {
  6. struct FireCampInstanceGpu {
  7. QVector4D pos_intensity;
  8. QVector4D radius_phase;
  9. };
  10. struct FireCampBatchParams {
  11. static constexpr float kDefaultFlickerSpeed = 5.0F;
  12. static constexpr float kDefaultFlickerAmount = 0.02F;
  13. static constexpr float kDefaultGlowStrength = 1.25F;
  14. float time = 0.0F;
  15. float flicker_speed = kDefaultFlickerSpeed;
  16. float flicker_amount = kDefaultFlickerAmount;
  17. float glow_strength = kDefaultGlowStrength;
  18. };
  19. } // namespace Render::GL