Commit graph

45 commits

Author SHA1 Message Date
lookibed
81489a13cf add block material shaders
- 'shader' property of block materials: shaders/materials/<name>.glslv, .glslf with material_vertex / material_fragment hooks and #param uniforms
- material shaders code is included into main, translucent and shadows programs through generated headers, no extra draw calls
- chunk vertex normal.w byte replaced with 'flags': bit 7 - emission flag, bits 0-6 - material shader index (vertex format size is not changed)
- doc/*/block-materials.md
2026-10-02 06:33:01 +03:00
MihailRis
02dbd01e73 fix custom models solidity detection 2026-08-17 23:34:38 +03:00
MihailRis
383dcde2e7 move default block material name to defaults.toml 2026-07-28 23:18:41 +03:00
MihailRis
e0be7a8d8c fix custom model blocks render (with some conditions) 2026-07-26 21:46:03 +03:00
MihailRis
42c4716be2 change: skeletons are assets now, not content units 2026-01-16 01:01:15 +03:00
MihailRis
e451a4f3a3 add explicit 'solid' block property 2026-01-08 22:43:20 +03:00
clasher113
8cd5e38385 fix: block.get_hitbox 2025-12-27 18:12:37 +02:00
MihailRis
19acda1a88 add cached item.has_tag, block.has_tag & update docs 2025-08-31 12:55:02 +03:00
MihailRis
185b6cc661 add block.has_tag, item.has_tag 2025-08-30 23:46:45 +03:00
MihailRis
8bdf31d7bb add block/item tags 2025-08-30 23:26:07 +03:00
MihailRis
7e0b58d96b add 'offset', 'bits' properties & fix is_solid_at 2025-07-14 00:20:49 +03:00
MihailRis
29021d1178 refactor a bit 2025-07-14 00:02:29 +03:00
MihailRis
5fdff1f8f6 fix block solidity property 2025-07-13 22:56:06 +03:00
MihailRis
5478d121f0 add variants (WIP) 2025-07-13 21:28:57 +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
b66937c61d feat: scripts classification 2025-03-13 00:28:40 +03:00
MihailRis
3430e5cd6f add 'player-entity' to defaults.toml 2025-02-12 16:32:21 +03:00
MihailRis
ebea9af380 add '...@append' method to block properties 2024-12-29 08:56:47 +03:00
MihailRis
086c20c370 cache block.index, block.name, item.index, item.name 2024-12-12 20:28:41 +03:00
MihailRis
d15624cd47 fix rotated aabb blocking check & refactor PlayerController 2024-11-05 03:15:11 +03:00
MihailRis
edad594101 fix block.get_hitbox again 2024-10-29 23:03:42 +03:00
MihailRis
b217c902c4 fix extended blocks solidity & fix extended blocks neighbours update 2024-10-22 08:06:26 +03:00
MihailRis
b4578cfb87 fix caves issues & add block 'surface-replacement' property 2024-10-08 22:37:41 +03:00
MihailRis
3784b57eed move biomes definition to a json file 2024-09-29 22:03:37 +03:00
MihailRis
806ed4b155 add automatic biome-based structures placement 2024-09-24 17:08:25 +03:00
MihailRis
2a767a3638 add generator layers 2024-08-17 18:11:52 +03:00
MihailRis
5fa6b14f05 add GeneratorDef 2024-08-14 01:23:14 +03:00
MihailRis
f43cc93cd2 update project includes format 2024-08-10 01:37:48 +03:00
InfiniteCoder
5c9bc83bbd items/ + objects/ + util/ 2024-08-04 22:26:08 +03:00
Vyacheslav Ivanov
bbf33e8e4d
format: reformat project
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-03 19:53:48 +03:00
Vyacheslav Ivanov
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
ba046a52c0
Revert "fix: optimization: Various PVS-Studio warnings" 2024-08-02 14:51:44 +03:00
Vyacheslav Ivanov
5dd7a15c09
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-02 01:57:43 +03:00
MihailRis
a013e7eefd feat: cameras saving/loading 2024-07-11 22:45:57 +03:00
MihailRis
45c4da048c feat: saving/loading resource entries 2024-07-11 21:56:27 +03:00
MihailRis
60f4f33180 rename rig to skeleton 2024-07-10 04:28:12 +03:00
MihailRis
49aa64a033 change rigs role from assets to content units 2024-07-08 05:03:09 +03:00
MihailRis
f135896683 add entities indexing 2024-06-26 18:14:04 +03:00
MihailRis
66a1240fbc refactor ContentBuilder and add entities support 2024-06-26 03:40:14 +03:00
MihailRis
ee9f1639e9 refactor Content 2024-06-25 22:37:53 +03:00
MihailRis
8aa6d5ee2d add extended blocks (block size property) 2024-06-08 16:58:05 +03:00
Pugemon
f25a425cb9 Optimize parameter passing to avoid unnecessary copying 2024-06-07 04:00:38 +03:00
MihailRis
47c6e35a0b fix 2024-05-19 08:40:43 +03:00
MihailRis
c5f663b7cb memory-related refactor 2024-05-19 07:09:58 +03:00