summaryrefslogtreecommitdiff
path: root/src/client
Commit message (Collapse)AuthorAge
* Initialize wield mesh colors when changing item. (#12254)x20482022-05-01
| | | Fixes #12245
* Deal with compiler warningssfan52022-04-30
|
* Refactor local time getter functions (#12221)Oblomov2022-04-28
| | | | | | | | | | | | | | | | | 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.)
* Remove HW_buffer_counter after IrrlichtMt fix to remove HWBufferMap (#12232)paradust72022-04-28
| | | Keep code and use version check instead, for backwards compatibility
* Show unknown node in debug screen (#12230)Wuzzy2022-04-28
|
* Fix worldaligned texturesGiuseppe Bilotta2022-04-24
| | | | | | | | | | | | 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.
* Fix some debug info showing despite being disabled in the UI (#12205)Lars Müller2022-04-21
|
* Fix '[combine' when EVDF_TEXTURE_NPOT is disabled. (#12187)paradust72022-04-16
| | | | | | | 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.
* upright_sprite: Fix walk animation in first person (#12194)SmallJoker2022-04-15
|
* Implement shadow offsets for the new SM distortion function (#12191)x20482022-04-14
| | | | | | | | * 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
* Spacing fixesShadowNinja2022-04-08
|
* Fix compiler warningsShadowNinja2022-04-08
|
* Remove obsolete commented code (follow up to #12166)Dmitry Kostenko2022-04-07
|
* Adjust shadowmap distortion to use entire SM texture (#12166)x20482022-04-07
|
* Disentangle map implementations (#12148)Jude Melton-Houghton2022-04-07
| | | | Fixes violation of Liskov substitution principle Fixes #12144
* Add depth sorting for node faces (#11696)x20482022-04-02
| | | | Use BSP tree to order transparent triangles https://en.wikipedia.org/wiki/Binary_space_partitioning
* Increase the ratio between shadow range and viewing rangeDmitry Kostenko2022-04-02
|
* Limit shadow map to the viewing range (#12158)x20482022-03-31
|
* Tune shadow perspective distortion (#12146)x20482022-03-31
| | | | | * 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
* Add API to control shadow intensity from the game/mod (#11944)x20482022-03-26
| | | * Also Disable shadows when sun/moon is hidden. Fixes #11972.
* Fix footsteps for players whose collision box min y != 0 (#12110)Gregor Parzefall2022-03-14
|
* Fix undefined behavior in TileLayer (#12125)Daroc Alden2022-03-11
| | | Initialize the values properly
* Use Irrlicht bindings for GL callsfan52022-03-09
|
* Correct normal bias for entitiesDmitry Kostenko2022-03-07
| | | | | | Remove use of magic constants. Apply cameraOffset Calculate distance projected on SM plane
* Fix shadows for upright sprite nodesDmitry Kostenko2022-03-07
| | | | | Avoid using read only materials in mesh scene node, as it confuses shadow renderer.
* Avoid possible buffer overflow when checking face normalsDmitry Kostenko2022-03-07
|
* Use correct indexes when checking mesh normalsDmitry Kostenko2022-03-07
|
* Detect 'insane' normals in checkMeshNormals.Dmitry Kostenko2022-03-07
| | | | | Detect non-zero normals which point in the opposite direction from the face plane normal.
* Improve lighting of entities.Dmitry Kostenko2022-03-07
| | | | | Pass correct natural & artificial light to the shaders Use natural/artificial light ratio for correct rendering of shadows
* Apply shadow texture to wield-based entitiesDmitry Kostenko2022-03-07
| | | | For example, dropped nodes and items.
* Render shadows on entities.Dmitry Kostenko2022-03-07
| | | | Fixes problem with mod 'drawers'.
* Readd basic_debug as a HUD flag (#12020)Lars Müller2022-03-05
|
* Allow to set the displayed item count and its alignment via meta (#8448)DS2022-02-10
| | | | | | | | | | | | | * Allow to set the displayed item count and its offset via meta * fix rect constr call * devtest: add dump_item chatcommand * fix rect2 constr call (sdim is a position (typedef for v2s32), not a dimension) and remove background because it would work now * add missing utf8 to wide conversion * rename to count_meta
* Revert "Disable dynamic shadows for the 5.5.0 release" (#12032)rubenwardy2022-01-31
|
* Fix builtin statbar backgroundsLars Mueller2022-01-31
| | | | see #12000
* Get rid of `basic_debug` last minutesfan52022-01-30
| | | This isn't a revert but rather just disables the codepaths. also see #12011
* Disable dynamic shadows for the 5.5.0 releaseSmallJoker2022-01-29
| | | | | | | | | The dynamic shadows are yet not in the desired state to justify the inclusion into version 5.5.0. A stable release is long overdue, hence this allows fixes to continue in 5.6.0-dev to finally release an acceptable version of the dynamic shadows feature. Reverting this commit is highly recommended to proceed in development.
* Rework drawtime and related timekeeping code to use microsecondssfan52022-01-27
|
* Automatically migrate client mod storage (#11960)Jude Melton-Houghton2022-01-27
|
* Fix consistency of sky sun/moon texture behavioursfan52022-01-22
| | | | Also cleans up related code somewhat.
* Allow resetting celestial vault elements by leaving its arguments empty (#11922)Zughy2022-01-22
|
* Fix local animation not instantly updating after being setsfan52022-01-19
|
* Reset override material in anaglyphDmitry Kostenko2022-01-16
| | | | Reset override material properties before applying the color filter.
* Restore pass-through of direction keys (#11924)sfan52022-01-09
| | | This moves relevant code into the PlayerControl class and gets rid of separate keyPressed variable.
* Fully remove bitmap font support (#11863)sfan52022-01-08
| | | Freetype is now a build requirement.
* Use a database for mod storage (#11763)Jude Melton-Houghton2022-01-07
|
* Cap damage overlay duration to 1 second (#11871)Wuzzy2022-01-02
|
* Recalculate normals before adding mesh to the scenex20482022-01-02
|
* Print announce error response (#11878)ShadowNinja2022-01-01
| | | | | | | | Fix HTTPFetch caller and request ID to 64 bits Check that allocated caller ID is not DISCARD Print body if serverlist request returns error Don't print control characters from HTTP responses Document special HTTPFetch caller IDs Allow unicode to be printed
* Improve TTF support for pixel-style fonts (#11848)Vincent Robinson2021-12-30
|