Commit Graph

1159 Commits

Author SHA1 Message Date
HybridDog 29c727f0cd
Fix MSAA stripes (#9247)
This only works when shaders are enabled.
The centroid varying avoids that the textures (which repeat themselves out of bounds) are sampled out of bounds in MSAA.
If MSAA (called FSAA in minetest) is disabled, the centroid keyword does nothing.
2022-05-21 16:18:09 +02:00
sfan5 c41e6a9648
Fix certain connected nodeboxes crashing when falling
fixes #10695
2022-05-21 16:18:08 +02:00
lhofhansl eb3dea562b
Increase limit for simultaneous blocks sent per client and the meshgen cache. 2022-05-21 16:18:08 +02:00
Wuzzy 36057e578a
Fix falling image of torchlike if paramtype2="none" (#10612) 2022-05-21 16:18:07 +02:00
sfan5 73211c68d6
Copy position for can_dig
fixes #10514
2022-05-21 16:18:07 +02:00
lhofhansl 2378f4ee82
Increase default emerge queue limits and limit enqueue requests for active blocks. 2022-05-21 16:18:07 +02:00
Desour ae7bdddf51
Do not set a default for description in itemdef table (#10559)
* Do not set a default for description in itemdef table

* improve documentation
2022-05-21 16:18:06 +02:00
lhofhansl dcb1aab2d4
Increase defaults for viewing_range, active_object_range and related settings #10597 2022-05-21 16:18:06 +02:00
rubenwardy 01f09b912b
Fix segfault in deprecation logging due to tail call, log by default (#10174) 2022-05-21 16:18:05 +02:00
numzero 88f2e825b9
Shaders for Android (GLES 2) (#10506)
Shader support for OpenGL ES 2 devices (Android)

Co-authored-by: sfan5 <sfan5@live.de>
2022-05-21 16:18:05 +02:00
Desour c400b9d9e8
Add documentation to builtin core.run_callbacks (#10494) 2022-05-21 16:18:04 +02:00
lhofhansl c66ec62c77
Remove all bump mapping and parallax occlusion related code. 2022-05-21 16:18:04 +02:00
paramat 5eb3966a66
Give unnamed world names incrementing numbers. Format 'world<number>' (#10247)
Code created with help from GitHub users sirrobzeroone and pauloue, thank you.
2022-05-21 16:18:04 +02:00
Desour 6c78e76633
Add a short_description to be used by mods (#8980) 2022-05-21 16:18:03 +02:00
Hugo Locurcio f49e97c3d9
Improve the `fsaa` setting description (#10279)
See https://github.com/minetest/minetest/issues/8459.
2022-05-21 16:18:03 +02:00
HybridDog e5e8fba742
Add minetest.get_artificial_light and minetest.get_natural_light (#5680)
Add more detailed light detection functions, a function to get the artificial light (torches) and a function to get the sunlight as seen by the player (you can specify timeofday).

Co-authored-by: rubenwardy <rw@rubenwardy.com>
2022-05-21 16:18:02 +02:00
rubenwardy 9bac2c659e
Deprecate get_player_velocity and add_player_velocity (#10173) 2022-05-21 16:18:02 +02:00
Elijah Duffy 3001721dd2
Lua API: Add register_on_chatcommand to SSM and CSM (#7862)
Allows catching a chatcommand call just after the command and the
parameters are parsed but before its existence is checked and before the
corresponding function is run. Returning `true` from a callback function
will prevent default handling of the command leaving mods to handle the
command manually.
2022-05-21 16:18:01 +02:00
HybridDog 240019bddd
Reduce the FPS when the window is unfocused (#8837) 2022-05-21 16:18:01 +02:00
HybridDog 8a86eacc9d
Chatcommand: Show help message if func returns false without message
#9440
2022-05-21 16:18:01 +02:00
paramat 0d024fa0af
Improve layout of main menu 'local' tab (#10366) 2022-05-21 16:18:00 +02:00
tenplus1 03cb42f725
Ability to remove minetest.after once set (#10103) 2022-05-21 16:18:00 +02:00
hecks fb5c84855d
Remove "generate normal maps" feature (#10313)
Erase all traces of normal "generation" from fragment shaders
Remove the "feature" from the engine and default config
Remove any leftover documentation of it
2022-05-21 16:17:59 +02:00
paramat 7c52caee56
Add 'ores' global mapgen flag (#10276) 2022-05-21 16:17:59 +02:00
Pierre-Yves Rollo eae3db8399
Fix #10349 game crashing if dropped an item with undefined light_source (#10351) 2022-05-21 16:17:58 +02:00
LoneWolfHT 32c85cf41b
Fix dropped craftitems/tools not using light_source values (#9438) 2022-05-21 16:17:58 +02:00
Desour 3ec4ffeb05
Add vector.offset (#10321) 2022-05-21 16:17:58 +02:00
MoNTE48 5d84294168
Android: drop simple MainMenu (#10227)
The default (PC-style) MainMenu works great on Android. Provides access to ContentDB and allows players to create many worlds in a few clicks.
Makes the interface consistent and eliminates player confusion.
2022-05-21 16:17:57 +02:00
v-rob bde2814bd2
Auto focus on OK button in main menu error messages (#10300) 2022-05-21 16:17:57 +02:00
lhofhansl aef1804e43
Allow the ABM time budget to be configurable. 2022-05-21 16:17:56 +02:00
rubenwardy d07f7b7f09
ContentDB: Add Update All and download queuing (#9995) 2022-05-21 16:17:56 +02:00
ANAND 2c1848211c
Allow binding dig, place actions to keys; remove LMB/RMB hardcoding
Co-authored-by: Sam Caulfield <sam@samcaulfield.com>
2022-05-21 16:17:55 +02:00
1F616EMO 858ae0dfdf
Change `last-login` command to show player name in output (#10263) 2022-05-21 16:17:55 +02:00
paramat 86807859e8
Mapgen Flat: Add caverns, disabled by default (#9913)
Add the caverns used in V5, V7, Valleys, Carpathian.
Disabled by default to not be force-enabled in existing worlds.
2022-05-21 16:17:55 +02:00
SmallJoker b636d018bf
Falling: Fix error caused by missing param2
Falling nodes that were spawned prior the recent falling node changes did not require param2.
Default to param2 = 0 when none is found in the node data.
2022-05-21 16:17:54 +02:00
rubenwardy a8f8a7948e
Fix incorrect view URL for games
package.id is a sanitised combination of author and basename, used to
compare remote and local content. Minetest ignores `_game` when comparing
game names, so package.id has `_game` removed. This meant that the wrong
URL was being generated for View.
2022-05-21 16:17:54 +02:00
LoneWolfHT 7abd2a9ce5
Add object crosshair, disable entity selectionboxes by default (#9523)
Adds new object crosshair base pack texture
2022-05-21 16:17:53 +02:00
sfan5 9c7339ad64
Fix ContentDB menu icons not appearing on Windows 2022-05-21 16:17:53 +02:00
NetherEran 153557e3f7
Some vector functions useful for working with rotations (#9572)
* added vector.rotate

* added vector.forward_from_rotation and vector.up_from_rotation

* added vector.forward_up_to_rotatiton

* fixed some bugs and formatting with vector functions

* shortened name of some new vector functions and added documentation

* made vector.rotate not require a unit vector as axis

* fixed crash with vector.forward_up_to_rot

* renamed new vector functions, made vector.rotate apply a rotation matrix, old vector.rotate is now called vector.rotate_around_axis

* documented vector function changes

* removed some whitespace to appease luacheck

* implemented and fixed optimization of vector.rotate_around_axis by SmallJoker

* added some unit tests for rotation vector functions

* clarified that rotation vectors are in radians and according to the left hand rule

* hopefully appeased luacheck

* renamed rotation_to_horizontal to forward_at_rotation, rotation_to_vertical to up_at_rotation

* handled cases where sin or cos are 0 in rotation vector functions

* added more comments

* clarified documentation of rotation vector functions

* added more unit tests

* changed way in which vector.rotate_around_axis is adjusted for left handed coordinate systems

* made vector.rotate_around_axis actually left handed

* unrolled matrix multiplication

* removed vector.forward_at_rotation and vector.up_at_rotation

* prettified vector.rotate_around_axis, made previous commits not break anything

* removed references to removed vector.forward_at_rotation and vector.up_at_rotation

* removed documentation of removed vector functions

* clarified documentation and fixed styling of rotation vector functions

* restyled comments minorly

* spelling fixes and some hopefully better comments

* allowed 'up' to be missing from vector.directions_to_rotation and removed requirement for unit vectors as arguments

* made vector.rotate_around_axis() right handed again for consistency

* documented previous changes

* made matrix multiplication actually multiply

* renamed vector.directions_to_rotation() to vector.dir_to_rotation()

* optimized a distance comparison

* Fixed potential false positive in unit tests.

Co-authored-by: NetherEran <nethereran@hotmail.com>
2022-05-21 16:17:53 +02:00
Paul Ouellette 81e7460b30
LuaItemStack: Add __tostring metamethod (#8785)
* LuaItemStack: Add __tostring metamethod

* Clean up LuaItemStack::checkobject
2022-05-21 16:17:52 +02:00
rubenwardy ffaa3cdd6b
Fix incorrect extension used for ContentDB thumbnails 2022-05-21 16:17:52 +02:00
rubenwardy 72b9ac6b36
Add HTTP API to main menu (#9998) 2022-05-21 16:17:51 +02:00
rubenwardy 6837571319
Add buttons to ContentDB in game bar and configure world (#9944) 2022-05-21 16:17:51 +02:00
Wuzzy b4d042ef54
Add minetest.is_creative_enabled 2022-05-21 16:17:50 +02:00
rubenwardy a57ab6d2dc
Update ContentDB dialog (#9949) 2022-05-21 16:17:50 +02:00
sfan5 1abb3ba2f7
Change item entity collisionbox so that they don't sink into the ground 2022-05-21 16:17:50 +02:00
sfan5 5a985e650b
Fix falling entity not falling through players 2022-05-21 16:17:49 +02:00
rubenwardy 051b66728b
Make ContentDB downloads not block the UI (#9948) 2022-05-21 16:17:49 +02:00
Wuzzy e19d0a346e
Rename “Minimal development test” to “Development Test” (#9928) 2022-05-21 16:17:48 +02:00
rubenwardy 2ec7efd0ec
Add engine version string to ContentDB API request (#9890) 2022-05-21 16:17:48 +02:00