mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 08:35:20 +02:00
Real global textures (#6105)
* Real global textures * Add world-aligned textures * Update minimal to support world-aligned tiles * Update minimal
This commit is contained in:
@@ -598,6 +598,8 @@ void ParticleManager::addNodeParticle(IGameDef* gamedef,
|
||||
|
||||
float size = rand() % 64 / 512.;
|
||||
float visual_size = BS * size;
|
||||
if (tile.scale)
|
||||
size /= tile.scale;
|
||||
v2f texsize(size * 2, size * 2);
|
||||
v2f texpos;
|
||||
texpos.X = ((rand() % 64) / 64. - texsize.X);
|
||||
|
Reference in New Issue
Block a user