aboutsummaryrefslogtreecommitdiff
path: root/src/client/mapblock_mesh.h
AgeCommit message (Collapse)Author
2023-02-22Fix a -Wreorder warningDS
2023-02-08Generalize mesh chunking, and make it configurable. (#13179)lhofhansl
* Generalize mesh chunking. Set 3x3x3 chunks. * Make mesh chunk size configurable... Default to 1 (off). * Extract all mesh grid maths into a dedicated class --------- Co-authored-by: x2048 <codeforsmile@gmail.com>
2023-01-318x block meshes (#13133)x2048
Reduce the number of drawcalls by generating a mesh per 8 blocks (2x2x2). Only blocks with even coordinates (lowest bit set to 0) will get a mesh. Note: This also removes the old 'loops' algorithm for building the draw list, because it produces visual artifacts and cannot be made compatible with the approach of having a mesh for every 8th block without hurting performance. Co-authored-by: Jude Melton-Houghton <jwmhjwmh@gmail.com> Co-authored-by: Lars <larsh@apache.org> Co-authored-by: sfan5 <sfan5@live.de>
2023-01-06Occlusion culling algorithm based on recursive descend (#13104)x2048
Co-authored-by: DS <vorunbekannt75@web.de>
2022-09-18Client map: do frustum culling via planes (#12710)DS
2022-05-22Fixes needed to use irrArray backed by std::vector (#12263)paradust7
2022-05-08Consolidate some data structures in MapBlockMeshsfan5
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
2021-01-22Remove dead code (#10845)rubenwardy
2020-12-05Implement mapblock camera offset correctly (#10702)hecks
Implement mapblock camera offset correctly - reduce client jitter Co-authored-by: hecktest <>
2020-10-17Remove all bump mapping and parallax occlusion related code.Lars
2020-10-05Remove unused functions reported by cppcheck (#10463)SmallJoker
Run unused functions reported by cppcheck This change removes a few (but not all) unused functions. Some unused helper functions were not removed due to their complexity and potential of future use.
2018-11-28Move client-specific files to 'src/client' (#7902)Quentin Bazin
Update Android.mk Remove 'src/client' from include_directories