diff options
author | Y. Wang <yw05@forksworld.de> | 2023-12-29 15:31:51 +0100 |
---|---|---|
committer | gpcf <gabriel@gpcf.eu> | 2024-02-25 16:27:30 +0100 |
commit | 64776ba60e8e16cbfd4cbc51447284ba074abeec (patch) | |
tree | 2604ac6a9b151fa301974cafe06c2bc27bd0d82e | |
parent | b28ceaa2b48f39855183b982c9668d0154a626df (diff) | |
download | advtrains-64776ba60e8e16cbfd4cbc51447284ba074abeec.tar.gz advtrains-64776ba60e8e16cbfd4cbc51447284ba074abeec.tar.bz2 advtrains-64776ba60e8e16cbfd4cbc51447284ba074abeec.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
-rw-r--r-- | advtrains/tracks.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/advtrains/tracks.lua b/advtrains/tracks.lua index c415143..3959232 100644 --- a/advtrains/tracks.lua +++ b/advtrains/tracks.lua @@ -468,6 +468,7 @@ function advtrains.register_tracks(tracktype, def, preset) drawtype = "mesh", paramtype="light", paramtype2="facedir", + use_texture_alpha = "blend", walkable = false, selection_box = { type = "fixed", |