diff options
author | Y. Wang <yw05@forksworld.de> | 2024-11-11 21:15:16 +0100 |
---|---|---|
committer | orwell <orwell@bleipb.de> | 2024-11-11 21:20:08 +0100 |
commit | 5fb6732f8d8b38bbb1894466a367704886451f1a (patch) | |
tree | 210ad44b67cf8ef5ff9291352f62d20e9e266f11 /advtrains | |
parent | 4b8857a89da934939c7441ecce07755b4bb36261 (diff) | |
download | advtrains-5fb6732f8d8b38bbb1894466a367704886451f1a.tar.gz advtrains-5fb6732f8d8b38bbb1894466a367704886451f1a.tar.bz2 advtrains-5fb6732f8d8b38bbb1894466a367704886451f1a.zip |
Fix use_texture_alpha for tracks
The use of textures with transparent pixels (for the default tracks: the
"features" on the track) without specifying use_texture_alpha (at least
for the mesh drawtype) has been deprecated in a PR from August 2020[1]
(i.e. since 5.4.0[2]) and removed in the latest dev version[3]. As a
consequence, regular tracks are now rendered with black markers at the
same position where e.g. the blue (Lua)ATC marker would be found.
This commit fixes the issue by enabling use_texture_alpha by default for
all tracks.
[1] https://github.com/minetest/minetest/pull/10122
[2] https://dev.minetest.net/Changelog#5.3.0_.E2.86.92_5.4.0
[3] https://github.com/minetest/minetest/pull/13929
comment orwell96: Commit applied manually to new location in route_prog_rework, and uses clip instead of blend
Diffstat (limited to 'advtrains')
-rw-r--r-- | advtrains/track_reg_helper.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/advtrains/track_reg_helper.lua b/advtrains/track_reg_helper.lua index dbb2d53..31741d6 100644 --- a/advtrains/track_reg_helper.lua +++ b/advtrains/track_reg_helper.lua @@ -539,6 +539,7 @@ function advtrains.register_tracks(tracktype, def, preset) drawtype = "mesh", paramtype="light", paramtype2="facedir", + use_texture_alpha = "clip", walkable = false, selection_box = { type = "fixed", |