Commit graph

5025 commits

Author SHA1 Message Date
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
b201151500 fix translucent rendering order across chunk boundaries 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
1eeb59de26 fix extended block placement across chunk borders 2025-11-02 15:00:35 +03:00
eliotbyte
70d19a961b docs: add :block placement to world generator 2025-11-02 15:00:35 +03:00
eliotbyte
3644857900 add :block placement for single blocks 2025-11-02 15:00:35 +03:00
eliotbyte
772a282c8b docs: add custom model variant examples to block-propertie 2025-11-02 15:00:34 +03:00
eliotbyte
c7259d4e19 fix enable per-variant custom model caching 2025-11-02 15:00:34 +03:00
Eliot Byte
c815419e7c fix correct line generation algorithm and bounds calculation (#657)
* fix correct line generation algorithm and bounds calculation

- Fix closest_point_on_segment algorithm using proper dot product projection
- Correct loop bounds calculation for radius=0 lines
- Use precise integer arithmetic to avoid rounding errors
- Resolves missing blocks in vertical line structures

* fix ai hallucinations

* polishing closest_point_on_segment

* refactor: extract dot product calculation
2025-11-02 15:00:34 +03:00
MihailRis
1a745154b2 Merge branch 'main' into dev 2025-10-17 17:54:08 +03:00
MihailRis
6c01d57d53 cleanup 2025-10-17 17:35:22 +03:00
MihailRis
d435cbab5c
Adapt windows build to glm 1.0.2 (#655)
* update Shadows.cpp

* add glm includes to Shadows.cpp

* add includes
2025-10-17 13:03:58 +03:00
MihailRis
e7c99eed8d
Merge pull request #654 from MihailRis/vcm-rotation
vcm rotation
2025-10-16 23:28:06 +03:00
MihailRis
1b0d51a2f6 update doc/ru/vcm.md 2025-10-16 23:07:09 +03:00
MihailRis
18d4cff678 add 'rotate' and 'origin' box modifier to vcm 2025-10-16 22:57:45 +03:00
MihailRis
fc122ef3e1
Merge pull request #653 from MihailRis/new-player-funcs
New player.* functions
2025-10-16 22:18:44 +03:00
MihailRis
c0196ef092 update doc/*/scripting/builtins/libplayer.md 2025-10-16 22:00:00 +03:00
MihailRis
9cb9b095e8 add new players finding functions 2025-10-16 22:00:00 +03:00
MihailRis
2210ba8218 add includes 2025-10-16 21:43:02 +03:00
MihailRis
348113f6ea update Shadows.cpp 2025-10-16 21:26:05 +03:00
MihailRis
b0499ced14 add glm includes to Shadows.cpp 2025-10-16 21:10:06 +03:00
MihailRis
408467eed0 Merge branch 'main' into dev 2025-10-16 19:05:57 +03:00
MihailRis
064c1b407b
Merge pull request #652 from MihailRis/fix-stack-vector
fix util::stack_vector
2025-10-16 18:35:26 +03:00
MihailRis
fa6950ca87 fix util::stack_vector 2025-10-16 18:17:30 +03:00
MihailRis
ec94abccbc fix assets.parse_model with 'xml' format 2025-10-15 12:17:46 +03:00
MihailRis
0d6a61062a Merge branch 'main' into dev 2025-10-14 23:18:15 +03:00
MihailRis
da41de263d
Merge pull request #651 from MihailRis/fix-broken-dependencies-management
fix broken dependencies management
2025-10-14 23:17:33 +03:00
MihailRis
ee6f006b79 fix broken dependencies management 2025-10-14 22:54:23 +03:00
MihailRis
11403084e7
Merge pull request #650 from kotisoff/main
Minor lua code refactor + typo fix
2025-10-14 22:36:19 +03:00
MihailRis
76b54a890c fix wrapped textbox selection render 2025-10-14 22:20:27 +03:00
MihailRis
9340d8d48e Merge branch 'main' into dev 2025-10-14 21:53:40 +03:00
MihailRis
a1f0c2c252 fix mouse click textbox caret set 2025-10-14 21:44:14 +03:00
KotIsOff
f73663dc9c refactor Version pseudoclass in content.xml.lua 2025-10-14 21:17:39 +03:00
KotIsOff
f3ed3d26c8 typo: greather => greater 2025-10-14 20:46:38 +03:00
MihailRis
026ae756cf fix yaml array parsing 2025-10-13 23:09:24 +03:00
MihailRis
5755c616f3 fix: missing yaml null literals 2025-10-13 12:29:09 +03:00
MihailRis
48b8c3e9b4 fix 2025-10-10 23:22:47 +03:00
MihailRis
24931770d3
fix warnings (#648)
* fix unknown command line argument

* fix warnings settings for gcc

* fix -Wzero-as-null-pointer-constant

* revert CMakeLists.txt
2025-10-10 23:12:01 +03:00
MihailRis
963cedf2b8 Merge branch 'main' of https://github.com/MihailRis/voxelcore 2025-10-10 19:57:56 +03:00
MihailRis
2a9507b54e fix: byteutil.unpack 'b' is equivalent of 'B' 2025-10-10 19:57:53 +03:00
MihailRis
8f3e5e880c
temporary disable -Wsign-conversion 2025-10-10 14:32:07 +03:00
MihailRis
c7e58220a9
Merge pull request #647 from RomanDonw/main
generation.load_fragment fix
2025-10-10 14:18:28 +03:00
RomanDonw
b4ba2da955 generation.load_fragment fix 2025-10-10 20:59:01 +10:00
MihailRis
8e52ad4e3b
enable more clang/gcc warnings 2025-10-10 13:58:29 +03:00
MihailRis
31f3c2de6a
disable msvc warning C4457 2025-10-10 13:50:50 +03:00
MihailRis
c6c08e1efb
add -Wpedantic 2025-10-10 13:31:36 +03:00