MihailRis
626a08b9d2
Merge pull request #659 from eliotbyte/feature/block-placement
...
Feature/block placement
2025-11-12 19:43:34 +03:00
MihailRis
0a45277f96
add 'graphics.soft-lighting' setting
2025-11-10 18:28:24 +03:00
eliotbyte
17f6bd4403
refactor: extract compute_face_points and expand_aabb_4_if_needed helpers
...
- Added compute_face_points() to eliminate repeated p0..p3 calculations
- Added expand_aabb_4_if_needed() to consolidate densePass checks
- Unified expand_aabb() usage to expand_aabb_point() throughout
- Reduced code duplication in face(), faceAO(), and face variant methods
2025-11-02 18:19:02 +03:00
eliotbyte
0eec97726d
fix missing AABB expansion for non-AO faces
2025-11-02 17:30:30 +03:00
eliotbyte
3a78d5f334
fix constant naming
2025-11-02 15:01:31 +03:00
eliotbyte
34cb2bfdd5
fix function naming
2025-11-02 15:01:31 +03:00
eliotbyte
1dfb415843
refactor: constexpr constants and minor optimizations
...
Replace magic numbers with named constants, add AABB helpers,
reduce redundant normalizations, improve TU organization
2025-11-02 15:01:30 +03:00
eliotbyte
dbee19693e
refactor: consolidate duplicated AABB and texture code
...
Extract repeated frustum culling, UV region filling, and directional lighting calculations into helper functions. Fix compilation issues
2025-11-02 15:01:30 +03:00
eliotbyte
1bea18294f
fix AABB bounds for opaque custom block models
2025-11-02 15:01:30 +03:00
eliotbyte
4dc1fdbe05
fix cross-chunk culling for extended blocks with precise mesh AABBs
2025-11-02 15:01:30 +03:00
eliotbyte
27ce16db27
fix extended blocks culling and lighting at chunk boundaries
2025-11-02 15:01:29 +03:00
eliotbyte
c7259d4e19
fix enable per-variant custom model caching
2025-11-02 15:00:34 +03:00
eliotbyte
2a1d2f9354
fix enable per-variant custom model caching
2025-10-28 23:09:28 +03:00
MihailRis
fbde46afa7
feat: distance-based dense render optimization
2025-07-25 00:54:54 +03:00
MihailRis
799d712447
update ContentGfxCache
2025-07-24 22:51:53 +03:00
MihailRis
4a6ccf4847
feat: multiple index buffers per mesh support
2025-07-24 21:40:00 +03:00
MihailRis
6dfabe9ff3
fix variant indexing
2025-07-17 00:10:45 +03:00
MihailRis
5478d121f0
add variants (WIP)
2025-07-13 21:28:57 +03:00
MihailRis
3e59b186d3
fix custom models shading flag & add more properties to vcm
2025-07-13 18:51:53 +03:00
MihailRis
5ec9f14021
add emission gbuffer attachment
2025-07-12 21:09:23 +03:00
MihailRis
ed5efd9c3a
improve shadows
2025-05-21 21:41:01 +03:00
MihailRis
ad0396b31e
improve shadow map stability
2025-05-11 20:55:35 +03:00
MihailRis
8bb03a004f
refactor & fix random deleting texture
2025-05-10 16:13:06 +03:00
MihailRis
fc46b7c434
initial commit
2025-05-07 20:42:50 +03:00
MihailRis
3e2bf8a1d3
fix custom block models culling
2025-04-30 21:55:29 +03:00
MihailRis
87dc9ed167
minor refactor
2025-04-29 12:00:13 +03:00
MihailRis
9edff1b0f1
remove an extra check
2025-04-27 22:14:48 +03:00
MihailRis
9a68886cd5
feat: additional culling checks
2025-04-27 22:02:24 +03:00
MihailRis
b72599e7ee
feat: custom models simple culling
2025-04-27 21:17:24 +03:00
MihailRis
6bca93a1cd
improve custom models AO
2025-04-27 21:02:49 +03:00
MihailRis
20e3a961f9
add BlockModel struct
2025-04-27 18:21:56 +03:00
MihailRis
718f5d1089
rename BlockModel to BlockModelType
2025-04-27 15:18:14 +03:00
MihailRis
e357a4eb9f
remove Mesh constructor 'attrs' argument & format Mesh.hpp
2025-04-27 01:13:44 +03:00
REDxEYE
1ffbeb8148
Refactor mesh handling to use templated vertex structures for improved type safety and flexibility
2025-04-13 17:14:28 +03:00
MihailRis
3d22de761f
fix compiler warnings (GCC + Clang)
2025-03-20 22:04:29 +03:00
MihailRis
84f39dde39
update some blocks lighting params
2025-01-26 19:35:13 +03:00
MihailRis
9d7816a286
fix grass lighting
2025-01-03 13:00:25 +03:00
MihailRis
ab5a62c3aa
add new block.get_AXIS functions overloads & add rotation support to base:falling_block
2024-12-29 21:48:36 +03:00
MihailRis
c1b311f3c4
refactor: change pointer parameters to references for Level and Content in various classes
2024-12-25 18:53:53 +03:00
MihailRis
dc8f5e7873
add 'graphics.dense-render' setting
2024-12-21 08:13:05 +03:00
MihailRis
954724c837
add 'culling' property & optimize generated chunk meshes & fix faces culling when 'light-passing' is false
2024-12-21 06:41:03 +03:00
MihailRis
5f71522653
extend that one optimization
2024-11-17 04:31:07 +03:00
MihailRis
bd4a5ef7fc
optimize a bit
2024-11-17 03:19:55 +03:00
MihailRis
5240fe6226
rename vattr to VertexAttribute
2024-11-17 01:00:27 +03:00
MihailRis
65287b3273
move chunk vertex attributes info to commons.hpp
2024-11-17 00:54:10 +03:00
MihailRis
71788e4eb9
remove unnecessary shared_ptrs from ChunksRenderer and ChunkMesh
2024-11-16 16:04:00 +03:00
MihailRis
1ff89491e6
optimize (part 2)
2024-11-16 15:11:05 +03:00
MihailRis
b28bcf052b
optimize (part 1)
2024-11-16 09:18:14 +03:00
MihailRis
4400366719
feat: actually working slow prototype
2024-11-16 07:41:36 +03:00
MihailRis
5b6256e0fa
introduce ChunkMesh
2024-11-16 04:13:00 +03:00