aboutsummaryrefslogtreecommitdiff
path: root/src/client
AgeCommit message (Collapse)Author
2022-06-07Fix upstream merge issuesElias Fleckenstein
2022-06-07Merge branch 'master' of https://github.com/minetest/minetestElias Fleckenstein
2022-06-05Add register dialog to separate login/register (#12185)rubenwardy
New users find Minetest's account system confusing. This change moves username/password to a new dialog, with login and register buttons added to the Join Game tab. The old registration confirmation dialog is removed in favour of the new dialog. Fixes #8138
2022-06-03Properly keep noclip state in Game and ClientMapsfan5
2022-06-03Remove obsolete eye_height related workaroundsfan5
This was added a long time ago in 42bbd5c9ae06a8d8ffb7915599097ead6f848755 and meant to fix prevent the view becoming black when jumping into a ceiling, this no longer happens today.
2022-06-02Merge branch 'master' of https://github.com/minetest/minetestElias Fleckenstein
2022-05-29Make sure real disconnect reason isn't overwrittensfan5
bug introduced in 2f32044273d107e82fb1c35d4a0f616fa480cdf0
2022-05-29Remove remains of video mode queryingsfan5
2022-05-26Force-update shadows when the world is changed (#12364)x2048
2022-05-26Improve code in mapblock_mesh.cpp a bitsfan5
2022-05-23Quantize light frustum calculations (#12357)x2048
* Quantize light frustum calculations Reduces shadow flicker * Fix function name to match conventions
2022-05-22Merge branch 'master' of https://github.com/minetest/minetestElias Fleckenstein
2022-05-22Fixes needed to use irrArray backed by std::vector (#12263)paradust7
2022-05-21Don't ignore server disconnects in client codesfan5
If the server stops talking to us without saying bye we should actually end the in-game session with an error message.
2022-05-21Improve shadow filters (#12195)x2048
* Rewrite shadow filtering for the new distortion * Calculate penumbra radius using a single sample * Avoid peter-panning effect due to filtering of short shadows * Add adaptive filter quality for soft shadows * Avoid sharp shadows on surfaces without normals (e.g. plants) * Increase default and maximum soft shadow radius * Make line numbers in shader errors match the code
2022-05-20Fix lighting of upright_sprite entities (#12336)x2048
Use MeshNode materials to set the light since ReadOnlyMaterials is now false
2022-05-20Fix lighting of the wield mesh (#12341)x2048
* Assign node light to player before final color blend. Fixes day/night lightbank ratio for wield meshes * Update wield mesh light when changing mesh
2022-05-18Merge branch 'master' of https://github.com/minetest/minetestElias Fleckenstein
2022-05-18Use std::map instead of core::map (#12301)paradust7
2022-05-17Merge branch 'master' of https://github.com/minetest/minetestElias Fleckenstein
2022-05-17Add spiderElias Fleckenstein
2022-05-15Initialize wield mesh color when wield_image is setDmitry Kostenko
#12245
2022-05-09HUD: Update selection mesh every frame (#12270)Lars Müller
Fixes outdated selection boxes after entity property changes.
2022-05-08Consolidate some data structures in MapBlockMeshsfan5
2022-05-08Fix mapblock geometry optimisation not workingROllerozxa
Caused by the depth sorting PR marking not only transparent nodes to be ignored but also opaque ones with the TILE_MATERIAL_BASIC material type
2022-05-04Avoid rendering invisible faces of simple nodeboxes (#12262)x2048
* Skip rendering faces adjacent to opaque nodes * Cancel out opposite faces of adjacent nodebox nodes of the same type Fixes #6409
2022-05-04guiScalingFilter: Fix most memory leaks (#12256)SmallJoker
Calls to the cache function ended up creating a new texture regardless whether the texture is already cached.
2022-05-04Make logging cost free when there is no output target (#12247)paradust7
The logging streams now do almost no work when there is no output target for them. For example, if LL_VERBOSE has no output targets, then `verbosestream << x` will return a StreamProxy with a null target. Any further `<<` operations applied to it will do nothing.
2022-05-03Fix broken FPS/dtime counters in debug infosfan5
was broken by a89afe1229e327da3c397a3912b2d43d2196ea2b
2022-05-01Initialize wield mesh colors when changing item. (#12254)x2048
Fixes #12245
2022-04-30Deal with compiler warningssfan5
2022-04-28Refactor local time getter functions (#12221)Oblomov
This commit introduces mt_localtime() in src/gettime.h, a wrapper around the OS-specific thread-safe versions of localtime() (resp. localtime_s on Windows and localtime_r in other systems). Per the Open Group recommendation, «portable applications should call tzset() explicitly before using ctime_r() or localtime_r() because setting timezone information is optional for those functions», so we also do a one-shot call of tzset() (_tzset() on Windows to avoid warning C4996). The function is used to replace the localtime() calls in getTimestamp() and makeScreenshot(). (The only reminaing call to localtime() in the tree now is the one in the local copy of the Lua source code.)
2022-04-28Remove HW_buffer_counter after IrrlichtMt fix to remove HWBufferMap (#12232)paradust7
Keep code and use version check instead, for backwards compatibility
2022-04-28Show unknown node in debug screen (#12230)Wuzzy
2022-04-24Fix worldaligned texturesGiuseppe Bilotta
As reported in #12197, b0b9732359d43325c8bd820abeb8417353365a0c introduces a regression in worldalign textures. The specific change that seems to be responsible for this issue is the change in order between the computation of the cuboid texture coordinates and the box edge correction. Fix #12197 by moving the box edge correction back to before the cuboid texture coordinates, as it used to be.
2022-04-21Fix some debug info showing despite being disabled in the UI (#12205)Lars Müller
2022-04-16Fix '[combine' when EVDF_TEXTURE_NPOT is disabled. (#12187)paradust7
Stop scaling images to POT immediately when loaded. The 'combine' modifier hardcodes X and Y coordinates, and so behaves incorrectly if applied to a scaled image. Images emitted by generateImage() are already scaled to POT before being used as a texture, so nothing should break.
2022-04-15upright_sprite: Fix walk animation in first person (#12194)SmallJoker
2022-04-14Implement shadow offsets for the new SM distortion function (#12191)x2048
* Move shadow position calculation to vertex shaders * Animate entire scene before rendering shadows to prevent lagging of shadows * Remove unnecessary use of PolygonOffsetFactor * Apply normal offset to both nodes and objects * Rename getPerspectiveFactor -> applyPerspectiveDistortion * Remove perspective distortion from fragment shaders
2022-04-08Spacing fixesShadowNinja
2022-04-08Fix compiler warningsShadowNinja
2022-04-07Remove obsolete commented code (follow up to #12166)Dmitry Kostenko
2022-04-07Adjust shadowmap distortion to use entire SM texture (#12166)x2048
2022-04-07Disentangle map implementations (#12148)Jude Melton-Houghton
Fixes violation of Liskov substitution principle Fixes #12144
2022-04-02Add depth sorting for node faces (#11696)x2048
Use BSP tree to order transparent triangles https://en.wikipedia.org/wiki/Binary_space_partitioning
2022-04-02Increase the ratio between shadow range and viewing rangeDmitry Kostenko
2022-03-31Limit shadow map to the viewing range (#12158)x2048
2022-03-31Tune shadow perspective distortion (#12146)x2048
* Pass perspective distortion parameters as uniforms * Set all perspective bias parameters via ShadowRenderer * Recalibrate perspective distortion and shadow range to render less shadow geometry with the same quality and observed shadow distance
2022-03-26Add API to control shadow intensity from the game/mod (#11944)x2048
* Also Disable shadows when sun/moon is hidden. Fixes #11972.
2022-03-14Fix footsteps for players whose collision box min y != 0 (#12110)Gregor Parzefall