71 Commits

Author SHA1 Message Date
IntegratedQuantum
38cae34a27 I cannot pull the submodule from build.zig :( 2022-12-28 13:08:16 +01:00
IntegratedQuantum
5098d4fe0f Use harfbuzz for layouting. 2022-12-28 12:08:20 +01:00
IntegratedQuantum
b616716eee Colored text and italic/bold text. 2022-12-27 19:32:29 +01:00
IntegratedQuantum
249b8baa3b Text rendering using mach-freetype. 2022-12-25 17:39:45 +01:00
IntegratedQuantum
2aac5e1081 Add multiple voxel models for fences and use a RotationMode to switch and rotate them. 2022-12-20 20:30:19 +01:00
IntegratedQuantum
0ccc5ce428 Rotate the block selection for rotated blocks. 2022-12-20 13:37:16 +01:00
IntegratedQuantum
843d9645aa Add more data to the voxel model that determines which of the side textures is used.
This allows to make voxel models more consistent in their texturing.
2022-12-19 17:16:10 +01:00
IntegratedQuantum
74589aa7e3 Move block texture data onto the gpu to fix texturing of rotated blocks. 2022-12-19 15:27:59 +01:00
IntegratedQuantum
e8c5513528 Add the log rotation mode. 2022-12-17 16:15:15 +01:00
IntegratedQuantum
a76fb8029e Rotate voxel models in the vertex shader. 2022-12-17 12:03:43 +01:00
IntegratedQuantum
cbd3abea49 Start working on rotation modes. 2022-12-15 14:03:38 +01:00
IntegratedQuantum
56f83aedbc Load block drops. 2022-12-14 20:28:49 +01:00
IntegratedQuantum
06aa06be86 Fix small implementation error in binary heap. 2022-12-12 21:06:36 +01:00
IntegratedQuantum
5051f9444a Fix texture rotation. 2022-12-10 17:29:36 +01:00
IntegratedQuantum
ac41fb8c96 Fix till++'s problems. 2022-12-10 16:48:53 +01:00
IntegratedQuantum
bcb8747dc1 Sort the chunks to reduce overdraw. 2022-12-03 10:31:19 +01:00
IntegratedQuantum
3bc3fa8620 Settings loading and storing (using fancy comptime reflection). 2022-11-27 20:19:49 +01:00
IntegratedQuantum
0d6303f7de Move all chunk data into single SSBO.
Right now this doesn't change much, but in the future this will be helpful when(if?) I get started with multidraw and putting stuff like frustum culling onto the gpu.
2022-11-26 20:45:47 +01:00
IntegratedQuantum
a777449a7c Add the model I used in my video. 2022-11-26 15:42:13 +01:00
IntegratedQuantum
df36109ee5 Add the player inventory(no gui yet), fix compile errors from last commit and fix a data race. 2022-11-22 15:46:04 +01:00
IntegratedQuantum
0f0b0b6ac4 Start working on items. 2022-11-19 19:22:49 +01:00
IntegratedQuantum
b3ea5d517c Switch to SIMD vectors.
SIMD vectors are probably faster and support operators.
2022-11-11 12:11:49 +01:00
IntegratedQuantum
cbf784d1e9 Fix crash on close. 2022-11-10 19:54:16 +01:00
IntegratedQuantum
28cb01353a Optimize the hitbox of voxel models. 2022-11-10 16:28:30 +01:00
IntegratedQuantum
3415f36b05 Add support for voxel models using parallax raymarching. 2022-11-05 20:17:51 +01:00
IntegratedQuantum
3edb05e61a Add work around to #12215 to the network thread and some further optimizations. 2022-11-01 11:59:22 +01:00
IntegratedQuantum
d4e9fa2c44 Add block selection. 2022-10-25 18:24:08 +02:00
IntegratedQuantum
2b561a0154 Update to new zig version 2022-10-19 15:20:09 +02:00
IntegratedQuantum
7d70bca35c Add bloom. 2022-10-18 18:56:02 +02:00
IntegratedQuantum
a04fc3369d Get block updates from the server and update the mesh. 2022-10-17 20:30:57 +02:00
IntegratedQuantum
cd5c466bc8 Remove unnecessary framebuffer binding. 2022-10-14 22:33:16 +02:00
IntegratedQuantum
55fa0064b9 Create the logs folder. 2022-10-14 20:36:24 +02:00
IntegratedQuantum
0c32d76a4a Make it compile on windows and remove -gdwarf-4 (a workaround to an old zig compiler issue). 2022-10-14 20:08:00 +02:00
IntegratedQuantum
3aed075a88 Refactor: Use @truncate 2022-10-13 19:04:56 +02:00
IntegratedQuantum
90a77ebf17 Add the genericUpdate Protocol. 2022-10-11 11:15:32 +02:00
IntegratedQuantum
1c76c5a174 Refactor network.Protocols so it works with auto-complete from zls. 2022-10-10 18:57:02 +02:00
IntegratedQuantum
cb5135da6e Add temporary entity rendering(it's a green rect) and receive entity data from the network. 2022-10-10 10:44:26 +02:00
IntegratedQuantum
d0d4b624c1 Start working on the client-side entity code. 2022-10-09 10:29:18 +02:00
IntegratedQuantum
6a5ea7f1d9 Make tsan happy. 2022-10-06 17:52:17 +02:00
IntegratedQuantum
bb2786c36f Better chunk load order, and better loading priority. 2022-10-04 16:40:42 +02:00
IntegratedQuantum
aa3a769dbe Fix directional bias when determining what chunks are within renderdistance. 2022-10-04 14:07:37 +02:00
IntegratedQuantum
3734aa60af Display blocks behind transparent blocks. 2022-10-02 19:12:21 +02:00
IntegratedQuantum
4af1cfdc4a Remove some leftover code from before merging ReducedChunks and NormalChunks. 2022-10-01 17:10:22 +02:00
IntegratedQuantum
9a2085f0da Fix wrong textures at chunk borders. 2022-10-01 17:00:46 +02:00
IntegratedQuantum
26f4dd2ff2 Fix chunk meshes at lod borders. 2022-10-01 16:46:58 +02:00
IntegratedQuantum
219957681d Change the way how faces are handled (they are now stored in the chunk they are facing towards, instead of the chunk where the actual block is in). 2022-10-01 11:41:23 +02:00
IntegratedQuantum
e8e1fb401c Forgot to commit shader changes. 2022-09-29 13:10:11 +02:00
IntegratedQuantum
dbc416332a Add Mesh creation for voxelSize=1 chunks. My goal is to combine all meshes in one algorithm to simplify things from the java version. 2022-09-29 12:15:47 +02:00
IntegratedQuantum
76b9b118a1 Store chunks in an array instead of an octree. 2022-09-24 17:41:26 +02:00
IntegratedQuantum
95eb578719 Work on daylight and directional light. 2022-09-20 13:58:13 +02:00