94 Commits

Author SHA1 Message Date
IntegratedQuantum
0cf88c46a5 Start the gui system: movable windows 2023-02-14 12:46:29 +01:00
IntegratedQuantum
fc52ad22ef Fix data races. 2023-02-04 16:32:30 +01:00
IntegratedQuantum
b84332d426 Some small fixes.
- Weird alignment issues when using *align(8)Vec3d
- Duplicate dFdx
2023-02-03 16:48:40 +01:00
IntegratedQuantum
4769e9cb52 I forgot to update the itemdrops... 2023-01-31 12:30:14 +01:00
IntegratedQuantum
be52c1054d itemdrop cleanup and some small fixes. 2023-01-30 17:23:53 +01:00
IntegratedQuantum
c1fac3ff3e render block drops. 2023-01-30 17:03:31 +01:00
IntegratedQuantum
1a3c1e56c9 Pass the normals for itemdrops as vertex attributes. 2023-01-28 16:30:42 +01:00
IntegratedQuantum
159adc9581 Render itemdrops. (still missing block drops) 2023-01-26 17:30:16 +01:00
IntegratedQuantum
a03f957743 Move the parse function into JsonElement to simplify usage.
And some more refactoring...
2023-01-24 12:48:21 +01:00
IntegratedQuantum
0ac3346cc4 Start working on itemdrops. 2023-01-24 12:06:02 +01:00
IntegratedQuantum
6bfd4784a2 Fix the log function.
Apparently the process of overwriting the log function was changed in the standard library.
2023-01-24 11:19:58 +01:00
IntegratedQuantum
929d296fdc Rewrite mipmapping for the 10th time. 2023-01-21 19:05:02 +01:00
IntegratedQuantum
f5a2b640b4 Replace ChunkCoordinate with i32.
Lines were getting long...
And also unless I go into fixed point territory i32 is just the only reasonable choice:
i16 is too small (→ 65536 world size)
i24 and similar are too weird(→ potential performance problems?)
i32 is already too big(→ 4 billion world size)
2023-01-20 11:43:02 +01:00
IntegratedQuantum
9bd9912eb8 Simplify the mesh selection code using vectors. 2023-01-20 11:21:53 +01:00
IntegratedQuantum
943d986e99 Mipmapping. 2023-01-14 20:22:57 +01:00
IntegratedQuantum
43da550385 Use the posix socket API wrapper of the zig standard library instead of messing with C code. 2023-01-05 17:18:11 +01:00
IntegratedQuantum
d9b81b91f8 Fix negative integer modulo issue with animation. 2023-01-05 14:20:54 +01:00
IntegratedQuantum
e9372da52d Avoid double-binding the frame buffer. 2023-01-05 13:28:37 +01:00
IntegratedQuantum
6c3dfa2f34 I accidently used glCreateTextures(opengl 4.5) instead of glGenTextures. 2023-01-05 13:00:52 +01:00
IntegratedQuantum
de850f9c5c Fix texture resizing issue and try some emojis. 2023-01-02 00:48:57 +01:00
IntegratedQuantum
d46bbcb323 Line wrapping support. 2023-01-01 02:44:24 +01:00
IntegratedQuantum
9554a180de Fix the random number generator. 2023-01-01 01:00:48 +01:00
IntegratedQuantum
fe1775a48d Add underline/strikethrough support and fix the parser and bold text. 2022-12-30 17:04:20 +01:00
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