mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00: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:
parent
6bab695479
commit
75320e7e88
26 changed files with 469 additions and 160 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue