aboutsummaryrefslogtreecommitdiff
path: root/src/client
AgeCommit message (Collapse)Author
2022-12-10Prevent air acceleration with 0 jump speed (#13036)Jude Melton-Houghton
2022-12-10Avoid out-of-bounds memory access in attached node placement prediction (#13038)Jude Melton-Houghton
2022-11-30Remove shader caching hack. (#12991)lhofhansl
2022-11-30Android: Segmentation fault fix, PendingIntent flag, and other fixes (#12960)Muhammad Rifqi Priyo Susanto
* Android: Segmentation fault fix, PendingIntent flag, and other fixes - Information about the crosshair is sent after camera initialization. - Since API 31, PendingIntent requires mutability flag. - super (class) is called in onRequestPermissionsResult(). - GameActivity suppresses "unused" warning since most of its methods are called from native code. - Non-null safety is added for nullable function calls. - Warning/error logging is added for various function calls' return value. * Move utility functions into Utils.java - Some nullable functions are changed to be non-null functions. - Some null checking outside it is removed. - More annotations are added to functions and parameters.
2022-11-28Wrap debug text on screen (#12978)Jude Melton-Houghton
2022-11-24Rename "mod metadata" to "mod storage" everywhereJude Melton-Houghton
2022-11-24Add support for attached facedir/4dir nodes (#11432)Wuzzy
2022-11-23Fix entity visiblity in bright artificial light (#12906)x2048
2022-11-20Avoid shadow flicker at certain angles (#12961)x2048
Change the way look direction and camera position are quantized when calculating light frustum
2022-11-20Object selection: Improve distance checks (#12974)DS
2022-11-18Add configurable saturation (#12865)lhofhansl
* Add configurable saturation Co-authored-by: Pevernow <3450354617@qq.com> Co-authored-by: x2048 <codeforsmile@gmail.com> Author: Lars <larsh@apache.org>
2022-11-09Resize hotbar immediately before drawing (#12930)x2048
2022-11-09Fix typos and en_US/en_GB inconsistency in various files (#12902)Abdou-31
2022-11-03Reduce exposure of various internals (#12885)Loïc Blot
* refactoring(StaticObjectList): don't expose m_active and m_stored anymore This prevents our old crap code where anyone can access to StaticObjectList. use proper modifiers. It also permits to do a short cleanup on MapBlock using a helper * refactoring(MapBlock): reduce a bit exposed m_active_blocks variable * refactoring: MapBlock::m_node_timers is now private We already had various helpers to perform this privatization, just use it. Also factorize the MapBlock stepping code for timers using already existing code and importing them from ServerEnvironment to MapBlock. It's currently done pretty straight forward without any inheritance as MapBlock is just used everywhere, maybe in a future we'll have ServerMapBlock over MapBlock. Currently for a simple function let's just use proper objects and add a comment warning * refactoring(Server): fix duplicated function for add/remove node * refactoring(guiFormSpecMenu): add removeAll function to prevent duplicated code * refactoring(ShadowRenderer) + perf: code quality + increase performance * All callers are already using the point and we should never test a function with nullptr node, it's a bug. Removed workaround which was hacky and fix the bug * Drop clientmap lookup from shadowrendered, just use directly its pointer and forbid to push it in the generic list * Reduce memory pressure on the renderShadowObject by preventing deallocating and reallocating multiple vectors on each node * refactoring(MapBlock): reduce exposure of MapBlock::m_static_objects It's not complete as some parts of the code are pretty nested, but it's better than before :) * fix: better working on new functions & drop unwanted 2 lines Co-authored-by: Jude Melton-Houghton <jwmhjwmh@gmail.com> Co-authored-by: Jude Melton-Houghton <jwmhjwmh@gmail.com>
2022-11-02Improve bloom effect (#12916)x2048
* Remove the built-in exposure factor of 2.5 * Add physics-based bloom (https://learnopengl.com/Guest-Articles/2022/Phys.-Based-Bloom) * Add luminance scaling for bloom layer to simulate HDR * Add setting to control bloom strength
2022-10-31Send crosshair setting after the touch screen GUI has been initialized (#12910)Muhammad Rifqi Priyo Susanto
2022-10-30Enable negative values for sun/moon orbit tilt (Northern hemisphere) (#12904)x2048
2022-10-30Add comments explaining use of entity glowx2048
2022-10-30Apply entity glow before translating to color spacex2048
2022-10-30Always add increment when getting node interior lightx2048
2022-10-30Use the same light level for non-solid draw types as for solidx2048
2022-10-30Allow rotating entity selectionboxes (#12379)Lars Müller
2022-10-28Fix incorrect culling introduced by ##12710 (#12887)lhofhansl
2022-10-26Shadow list improvements (#12898)x2048
* Remove redundant checks when attaching SM texture to entities. Some of the checks were broken, leading to crashes when shadow intensity is set to 0 * Avoid memory leak in shadow casters list when wield mesh changes item stacks
2022-10-18Implement vector and node conversion in Lua (#12609)Jude Melton-Houghton
Co-authored-by: sfan5 <sfan5@live.de>
2022-10-17LocalPlayer: Fix sneaking on nodes with large collisionboxes (#12626)SmallJoker
2022-10-09Optimize lighting calculation (#12797)Jude Melton-Houghton
2022-10-04Use legacy call when rendering to a single texturex2048
Fixes depth buffer in when undersampling > 1
2022-09-30Implement tool use soundssfan5
2022-09-30Clean up Game::handleDigging() and some related partssfan5
2022-09-30Improve double tap for jump detection (#12793)Muhammad Rifqi Priyo Susanto
2022-09-29Bloom (#12791)x2048
Adds configurable light exposure control and bloom effect (light bleeding) with client-side settings.
2022-09-29Add crosshair support for Android (#7865)Muhammad Rifqi Priyo Susanto
If enabled, a crosshair will be shown to select object. This will give Android players a way to play like they play on desktop. On third-person back camera mode, player is forced to use crosshair. On third-person front camera mode, player is unable to select anything. Co-authored-by: ROllerozxa <temporaryemail4meh+github@gmail.com> Co-authored-by: rubenwardy <rw@rubenwardy.com>
2022-09-27Pause shader animation timer in singleplayer pause menu (#12766)DS
Co-authored-by: sfan5 <sfan5@live.de>
2022-09-27Restore and enhance bouncy behavior (#11939)pecksin
2022-09-26Fix liquid drawtype faces sometimes not rendering (#12807)Wuzzy
Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
2022-09-26Avoid duplication of mod metadata in memory (#12562)Jude Melton-Houghton
Co-authored-by: sfan5 <sfan5@live.de>
2022-09-25Fix two spelling mistakesTobias Frost
Co-authored-by: Tobias Frost <tobi@debian.org>
2022-09-20Fix formula used for acceleration (#12353)Lars Müller
2022-09-20Rename a variable in localplayer.h, resolves a TODODS
2022-09-18Client map: do frustum culling via planes (#12710)DS
2022-09-16Add paramtype2s for 4 horizontal rotations and 64 colors (#11431)Wuzzy
4dir is like facedir, but only for 4 horizontal directions: NESW. It is identical in behavior to facedir otherwise. The reason why game makers would want to use this over facedir is 1) simplicity and 2) you get 6 free bits. It can be used for things like chests and furnaces and you don't need or want them to "flip them on the side" (like you could with facedir). color4dir is like colorfacedir, but you get 64 colors instead of only 8.
2022-09-10Allow looped animation to be used safely with old clientssfan5
fixes #12657
2022-09-06Add documentation of sun/moon orientation/scale differences (#12145)DS
2022-09-06Code optimizations / refactor (#12704)Herman Semenov
Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com> Co-authored-by: sfan5 <sfan5@live.de>
2022-09-06Implement rendering pipeline and post-processing (#12465)x2048
Co-authored-by: Lars Mueller <appgurulars@gmx.de> Co-authored-by: sfan5 <sfan5@live.de> Co-authored-by: lhofhansl <lhofhansl@yahoo.com>
2022-09-04Convert entity glow value to color space before adding to the lightx2048
2022-08-19Prevent loading a world with unresolved dependencies (#12542)rubenwardy
2022-08-17Use Sky class to obtain directional light source position for shadows (#12662)x2048
* Also remove unused Sky::getSkyBodyOrbitTilt method Fixes misalignment of sun position and shadow direction at high tilt values.
2022-08-14Limit force shadow update to urgent blocks (#12692)x2048