mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 21:41:50 +00:00
add particles lighting
This commit is contained in:
parent
b944f257f7
commit
7abb1a88c7
10 changed files with 66 additions and 26 deletions
|
|
@ -14,6 +14,7 @@ struct Particle {
|
|||
/// @brief Pointer used to access common behaviour.
|
||||
/// Emitter must be utilized after all related particles despawn.
|
||||
Emitter* emitter;
|
||||
int random;
|
||||
/// @brief Global position
|
||||
glm::vec3 position;
|
||||
/// @brief Linear velocity
|
||||
|
|
@ -28,6 +29,7 @@ class Texture;
|
|||
|
||||
struct ParticleBehaviour {
|
||||
bool collision = true;
|
||||
bool lighting = true;
|
||||
glm::vec3 gravity {0.0f, -16.0f, 0.0f};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue