mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 04:51:49 +00:00
add ParticlesPreset
This commit is contained in:
parent
83ddbda90b
commit
9728c674fc
5 changed files with 47 additions and 14 deletions
19
src/presets/ParticlesPreset.hpp
Normal file
19
src/presets/ParticlesPreset.hpp
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#pragma once
|
||||
|
||||
#include <glm/vec3.hpp>
|
||||
|
||||
#include "interfaces/Serializable.hpp"
|
||||
|
||||
struct ParticlesPreset : public Serializable {
|
||||
/// @brief Collision detection
|
||||
bool collision = true;
|
||||
/// @brief Apply lighting
|
||||
bool lighting = true;
|
||||
/// @brief Max distance of actually spawning particles.
|
||||
float maxDistance = 32.0f;
|
||||
/// @brief Velocity acceleration
|
||||
glm::vec3 acceleration {0.0f, -16.0f, 0.0f};
|
||||
|
||||
dv::value serialize() const override;
|
||||
void deserialize(const dv::value& src) override;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue