1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-22 17:18:39 +00:00
Commit graph

12726 commits

Author SHA1 Message Date
sfan5
f3c2bbfb48 Change shaders to be defined by input constants rather than drawtype/material type 2025-04-21 12:32:29 +02:00
sfan5
baa4c7cd21 Introduce IShaderConstantSetter abstraction 2025-04-21 12:32:29 +02:00
sfan5
b2c2a6ff47 Rename IShaderConstantSetter 2025-04-21 12:32:29 +02:00
sfan5
4c4e296274
Handle texture filtering sanely to avoid blurriness (#16034) 2025-04-21 12:31:44 +02:00
Lars Mueller
1c5776d13a FATAL_ERROR for orphan object refs in objectrefGetOrCreate 2025-04-20 20:49:10 +02:00
Lars Mueller
c0d10b24a4 Use SPDX-License-Identifiers in builtin 2025-04-20 20:49:10 +02:00
Lars Mueller
e1143783e5 Fix some (MSVC) compiler warnings 2025-04-20 20:49:10 +02:00
Lars Mueller
695d526764 Get rid of _IRR_OVERRIDE_ macro 2025-04-20 20:49:10 +02:00
Lars Mueller
5f1ff453c9 Replace _IRR_DEBUG_BREAK_IF with assertions 2025-04-20 20:49:10 +02:00
Jürgen Rühle
2f464843cb
Make it more convenient to customize node drops (#15872)
* Provide tool and digger to get_node_drops

This gives games/mods the ability to modify node drops depending on item
and/or player metadata without overriding node_dig or other workarounds.

* Copy wielded item to prevent modification in get_node_drops

* Also pass node pos to get_node_drops

Allowing properties of the node and its surroundings to affect node drops.

* Copy pos to prevent modification in get_node_drops

Co-authored-by: Lars Müller <34514239+appgurueu@users.noreply.github.com>

* Don't pass empty item stack to get_node_drops if wielded is nil

---------

Co-authored-by: sfan5 <sfan5@live.de>
Co-authored-by: Lars Müller <34514239+appgurueu@users.noreply.github.com>
2025-04-20 20:48:48 +02:00
y5nw
23bfb2db72
Move keybinding settings to (Lua-based) setting menu (#15791) 2025-04-20 20:20:49 +02:00
y5nw
c1d2124102
SDL: Send events for X1 and X2 mouse buttons (#16025) 2025-04-20 20:20:33 +02:00
y5nw
bf15036831
Show SDL version in the About tab (#16046) 2025-04-20 20:20:22 +02:00
y5nw
2bb7ed208c
Add vcpkg.json (#15863) 2025-04-20 13:28:31 +02:00
Travis Wrightsman
0695541bf5
Fix cross-building by ensuring output path is set 2025-04-17 12:35:31 +02:00
sfence
7375358afd
Fix warning in mg_decoration.cpp 2025-04-17 12:35:14 +02:00
Vincent Robinson
fd85737460
Add allow_close[] element to formspecs (#15971) 2025-04-16 16:20:39 -07:00
sfan5
04e82749db Make ETLF_FLIP_Y_UP_RTT work for texture download on GLES 2025-04-15 21:42:47 +02:00
sfan5
cf07b56235 Expand workarounds for format inconsistency with BGRA8888 extension on GLES
fixes #16011
2025-04-15 21:42:47 +02:00
sfan5
37d2bc8a5f
Reuse some allocations in ClientMap rendering 2025-04-15 21:42:39 +02:00
sfence
a9c197b1e5
Expand usable range of fill_ratio to about 2.3e-10 (#16026) 2025-04-15 21:42:12 +02:00
sfan5
bdaabad53c
Warn if async engine seems stuck (#16010) 2025-04-14 17:18:33 +02:00
DS
60c47c51e0
Optimize name-id-lookup for MapBlock serialization (#16000) 2025-04-14 17:18:21 +02:00
rubenwardy
75862e33b6
ContentDB: Add reviews tab (#15254) 2025-04-13 16:07:01 +01:00
Erich Schubert
78293404c7
Rename perlin noise to value noise (#15858) 2025-04-10 14:39:40 +02:00
sfan5
372e37faf2 Minor correction to how buildbot finds packages 2025-04-10 14:39:21 +02:00
sfan5
124d770823 Fix edge-case where manually set gameid isn't used 2025-04-10 14:39:21 +02:00
sfan5
9d81c02f27 Add/remove/change some log messages for clarity 2025-04-10 14:39:21 +02:00
sfan5
a00b9cab36
Fix operator[] for vector2d and vector3d being potentially UB (#15977)
We don't have a C++ expert on hand, but taking a pointer to one member
and expecting to access another by an offset is very fishy:
- for one, there could theoretically be padding
- the compiler might assume that we are only writing to that first member

The new code has shown to be free for constant parameter values.
Non-constant ones cause the assembly to have branches (why?), but we don't
use that much.
2025-04-08 22:25:45 +02:00
sfan5
46db688cc8 Implement support for array textures in GL driver
note: feature detection was not implemented in the legacy driver, but the code itself probably works.
2025-04-08 22:24:37 +02:00
sfan5
d5bf094f9a Prefer immutable texture storage when available 2025-04-08 22:24:37 +02:00
sfan5
427a7e4998 Split texture initialization code from upload 2025-04-08 22:24:37 +02:00
sfan5
9ff07df45e Fix GLES texture download to handle mipmaps and cubemap type 2025-04-08 22:24:37 +02:00
sfan5
38c3876c4e Drop support for storing mipmap data alongside IImage 2025-04-08 22:24:37 +02:00
sfan5
03affa1bbb Some minor code cleanups 2025-04-08 22:24:37 +02:00
Lars Müller
7689f1f0fd
Improve some warning messages (#15990) 2025-04-08 22:24:00 +02:00
Lars Müller
a3648b0b16
Add spatial index for objects (#14631) 2025-04-08 08:44:53 +02:00
cx384
bed36139db
Fix struct forward declaration 2025-04-07 01:38:32 +02:00
lhofhansl
6a71095655
Break liquid reflow scan early for all-air blocks (#15975)
Avoid scanning the a newly loaded block if it is all air and no liquid is flowing from above.
2025-04-05 11:01:39 -07:00
cx384
52b974184d
Move client code out of ItemDefManager (#15967) 2025-04-04 18:58:14 +02:00
cx384
a6d4cd7c15
Draw node animation for items (#15930) 2025-04-04 18:47:11 +02:00
Elias Åström
1db5a2f950
Add delay between punching and digging node (#15931) 2025-04-04 18:46:27 +02:00
Lars Müller
884f411387
Set CMAKE_POLICY_VERSION_MINIMUM=3.5 to make MSVC CI work again (#15978)
Co-authored-by: Josiah VanderZee <josiah_vanderzee@mediacombb.net>
2025-04-04 18:46:03 +02:00
grorp
66dedf1e21
lua_api.md: Mapblock-related and misc improvements (#15972)
Co-authored-by: sfan5 <sfan5@live.de>
Co-authored-by: DS <ds.desour@proton.me>
2025-04-03 13:46:06 -04:00
grorp
7dbd3a0744
lua_api.md: More info in LBM run_at_every_load documentation (#15956) 2025-04-02 10:05:23 -04:00
sfan5
47c75b3294
ImageSource: restrict max dimensions to protect from integer overflows (#15965) 2025-04-01 19:12:37 +02:00
Jisk
0179021acc
lua_api.md: MAX_WORKING_VOLUME is now 150 million 2025-04-01 19:12:22 +02:00
Lars Müller
2569b50252
Deprecate some legacy item registration logic (#15950) 2025-04-01 19:12:00 +02:00
grorp
c30c94dfaa
Add server/client annotations to settingtypes.txt and make use of them (#15756) 2025-04-01 07:55:47 -04:00
lhofhansl
6724068659
Slight fix to #15949 to handle emerge queue full (#15960)
Partially restore the existing logic, and try to enqueue a block as before, if the queue is full it will be handled correctly.
2025-03-31 21:31:10 -07:00