-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add a plantlike_leaves setting #2594
Conversation
for (u32 i = 0; i < 6; i++) | ||
tiledef[i].name += std::string("^[noalpha"); | ||
if (plantlike_leaves) { | ||
f->visual_scale = 1.1892; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why that value, and not 1?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1 means that the height and the width of the polygon is the node height (1m).
lf the polygon's width is 1, there would be visual spaces between the nodes because the polygon is diagonal seen from above, and so the the visual space size would be 1-sqrt(1*1/2), which is ~0.2929
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok then.
see comment, otherwise 👍 |
f->solidness = 0; | ||
f->backface_culling = false; | ||
material_type = TILE_MATERIAL_WAVING_PLANTS; | ||
} else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure, is it possible here to be f->waving == 1
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, l disabled it here because l think waving leaves with black look strange and you usually disable fancy leaves if you want to decrease lag.
l can enable it again if you want it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you document the change, you can leave it in.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where shall l document it?
f4d1109
to
f1b4a9d
Compare
I feel this is too specialised, should be done by mod instead, it's easy to override a default node definition. |
But if it's a mod the players can't decide themselves if they want plantlike leaves. |
I too feel like this should be done by mod. Perhaps a setting in minetest.conf or in the settings menu could be used by mod-makers. Then you can use minetest.overwrite_node():
|
it's already done by mods, but if you want to have plantlike leaves on every server it doesn't work |
Oh yes, I suppose that's true. If this is done then the work is done server side. |
This PR does still matter now we have simple leaves ? |
add the plantlike_leaves setting conf.example
f1b4a9d
to
ce6985b
Compare
https://github.com/minetest/minetest/pull/2594/files?w=1