Commit Graph
144 Commits
Author SHA1 Message Date
MihailRis fae372d19f feat: item models generation simple & remove core:item_models 2024-10-26 18:42:21 +03:00
MihailRis 9f70e14a13 update X sprites rendering randomization 2024-10-24 14:03:05 +03:00
MihailRis 054b3926cd remove extra shared_ptr use from util::ThreadPool 2024-10-24 11:49:06 +03:00
MihailRis 7f0e12bb4e rename a variable 2024-10-24 11:26:14 +03:00
MihailRis 3e1a82d137 make BlocksRenderer::createMesh return MeshData & make ChunksRenderer workers have standalone results 2024-10-24 10:54:07 +03:00
MihailRis cbbc04edcf fix rare grass-only chunk meshes 2024-10-24 09:19:58 +03:00
MihailRis d59fac61bb fix: backlight setting not applying on change 2024-10-15 04:58:46 +03:00
MihailRis 2ecde94be5 Merge branch 'main' into heightmaps 2024-10-14 09:35:16 +03:00
MihailRis 45a1e1df82 fix: backlight not applied to entities 2024-10-14 09:34:41 +03:00
MihailRis 1eb95705f5 Merge branch 'main' into heightmaps 2024-10-04 22:51:24 +03:00
MihailRis 45a793d647 fix: entity shading is incorrect when it is upper than max height 2024-10-04 22:50:37 +03:00
MihailRis e73da1687a Merge branch 'main' into heightmaps 2024-10-01 23:29:40 +03:00
MihailRis e750d90ff4 add 'graphics.chunk-max-vertices', 'graphics.chunk-max-renderers' settings 2024-10-01 23:25:25 +03:00
MihailRis 5e26d826b3 Merge branch 'main' into heightmaps 2024-09-13 11:36:16 +03:00
MihailRis 25c9c9a30a fix stars render 2024-09-13 11:35:53 +03:00
MihailRis c3569b5dd4 add AreaMap2D 2024-09-09 18:02:08 +03:00
@clasher113 545cf49642 block model "x" preview fix 2024-08-24 22:40:18 +03:00
MihailRis 3d3da1cdcd refactor World 2024-08-11 16:30:58 +03:00
MihailRis 93fac9960c fix 2024-08-10 04:36:26 +03:00
MihailRis dc10dc60c0 refactor BlocksRenderer a bit 2024-08-10 04:29:06 +03:00
MihailRis de5c75d782 replace include guards with pragma once 2024-08-10 01:57:59 +03:00
MihailRis f43cc93cd2 update project includes format 2024-08-10 01:37:48 +03:00
InfiniteCoder 85239004e3 window/ 2024-08-06 00:07:33 +03:00
InfiniteCoder 54f15ecaea maths/ 2024-08-06 00:06:23 +03:00
InfiniteCoder 79ccde35b7 lighting/ 2024-08-06 00:05:41 +03:00
InfiniteCoder 9283aa605f frontend/ 2024-08-06 00:01:27 +03:00
InfiniteCoder 9f9b9f2d64 world/ 2024-08-05 23:49:11 +03:00
InfiniteCoder 7f75c454c8 logic/ 2024-08-05 23:23:28 +03:00
InfiniteCoder 5d791b3cec Merge remote-tracking branch 'origin/main' 2024-08-05 21:24:27 +03:00
MihailRis bbfbb28349 set default fog curve to 1.0 2024-08-05 15:21:02 +03:00
MihailRis 01dec83e6c fix: underwater entities visibility 2024-08-04 23:56:38 +03:00
InfiniteCoder c7755040bd voxels/ 2024-08-04 22:42:44 +03:00
InfiniteCoder 5c9bc83bbd items/ + objects/ + util/ 2024-08-04 22:26:08 +03:00
InfiniteCoder eb061bcaf4 graphics/ 2024-08-04 22:12:48 +03:00
InfiniteCoder e6da3638f0 Logger.hpp 2024-08-04 12:46:03 +03:00
InfiniteCoder e1e3456139 content/ 2024-08-04 12:45:08 +03:00
InfiniteCoder 21ff65d781 assets/ 2024-08-04 11:08:07 +03:00
InfiniteCoder d5dc68dd38 Root includes 2024-08-04 10:24:11 +03:00
MihailRis 47db626145 refactor: PVS-Studio warnings fixes 2024-08-04 01:30:52 +03:00
MihailRis 245b39be62 refactor: PVS-Studio warnings fixes 2024-08-04 01:12:42 +03:00
Vyacheslav Ivanov e4f8625e2a fix: fix narrowing conversion double to float by using std math funcs
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-03 23:13:35 +03:00
Vyacheslav Ivanov 3621e7ce1b fix: PVS-Studio V522 mark false
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-03 23:00:10 +03:00
Vyacheslav IvanovandMihailRis 2e7c0a109d fix: optimization: PVS-Studio warning V810
Cached the result of 'glm::vec3(size * 0.63f)' in a temporary variable to avoid multiple identical function calls and improve performance.

Reported by: PVS-Studio
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-03 17:52:15 +03:00
Vyacheslav IvanovandMihailRis 26ff0f133a fix: optimization: PVS-Studio warning V821
Creating variables in a more localized scope can enhance performance and make the code easier to understand.

Reported by: PVS-Studio
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-03 17:50:04 +03:00
Vyacheslav IvanovandMihailRis aecd0f5db9 fix: optimization: PVS-Studio warning V832
It's better to use '= default;' syntax instead of empty constructor and destructor body.
Using '= default;' can help the compiler generate more optimal code.

Reported by: PVS-Studio

Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-03 17:44:10 +03:00
MihailRis 78e274dec4 fix frustum culling for entities 2024-08-03 17:41:03 +03:00
Vyacheslav IvanovandMihailRis e399e95930 fix: render: Fix WorldRenderer::renderBlockSelection
Block selection clears before new selection be drawn
Added a call to LineBatch::flush() to ensure that all buffered data is correctly uploaded to the GPU and rendered. The missing flush() was causing rendering artifacts, such as flickering of block outlines, which has now been resolved by ensuring that all accumulated data is processed and rendered properly.
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-02 15:13:22 +03:00
MihailRisandGitHub ba046a52c0 Revert "fix: optimization: Various PVS-Studio warnings" 2024-08-02 14:51:44 +03:00
Vyacheslav Ivanov 3a78746185 fix: render: Fix WorldRenderer::renderBlockSelection
Block selection clears before new selection be drawn
Added a call to LineBatch::flush() to ensure that all buffered data is correctly uploaded to the GPU and rendered. The missing flush() was causing rendering artifacts, such as flickering of block outlines, which has now been resolved by ensuring that all accumulated data is processed and rendered properly.
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-02 07:46:13 +03:00
Vyacheslav Ivanov 3d21b7ba6a fix: optimization: PVS-Studio warning V810
Cached the result of 'glm::vec3(size * 0.63f)' in a temporary variable to avoid multiple identical function calls and improve performance.

Reported by: PVS-Studio
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-02 05:41:47 +03:00