mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 09:05:19 +02:00
Implement spawning particles with node texture appearance
This commit is contained in:
@@ -42,7 +42,7 @@ class Particle : public scene::ISceneNode
|
||||
video::ITexture *texture,
|
||||
v2f texpos,
|
||||
v2f texsize,
|
||||
video::SColor color = video::SColor(0xFFFFFFFF)
|
||||
video::SColor color
|
||||
);
|
||||
~Particle() = default;
|
||||
|
||||
@@ -171,7 +171,7 @@ public:
|
||||
protected:
|
||||
static bool getNodeParticleParams(const MapNode &n, const ContentFeatures &f,
|
||||
ParticleParameters &p, video::ITexture **texture, v2f &texpos,
|
||||
v2f &texsize, video::SColor *color);
|
||||
v2f &texsize, video::SColor *color, u8 tilenum = 0);
|
||||
|
||||
void addParticle(Particle* toadd);
|
||||
|
||||
|
Reference in New Issue
Block a user