64 Commits

Author SHA1 Message Date
IntegratedQuantum
840d62177c Switch to f16 frame buffers in preparation for volumetric fog.
Also display some performance data using OpenGL's queries.
2023-08-21 09:41:41 +02:00
IntegratedQuantum
3fb17e24b9 A small change regarding the rotation mode ids.
These cannot be modded, so it doesn't make sense to add "cubyz:" in front of the id.
2023-07-31 21:42:45 +02:00
IntegratedQuantum
3f73c81de3 Goodbye beaches
Replacement biomes are no longer supported. Ocean now go a bit higher, which makes beaches appear naturally.

Also removed the old terrain generator which was no longer compatible anyways.
2023-07-26 21:26:46 +02:00
IntegratedQuantum
555838e369 Better biome interpolation. 2023-07-26 21:19:12 +02:00
IntegratedQuantum
d0c1f03fb3 Update zig version to 0.11.0-dev.4246+71dfce31b 2023-07-26 18:39:18 +02:00
IntegratedQuantum
8581a17c48 A couple of changes related to block placing and transparency:
Allow emissive transparent blocks (such as uranium glass (ok to be precise that's actually flourescence))
Allow selecting the inventory slot with mouse wheel.
Render item preview for transparent blocks (I don't really like how it looks yet)
Fix some bugs.
2023-07-22 18:56:51 +02:00
IntegratedQuantum
7597b8c5ff Add transparency sorting using a O(n) algorithm. 2023-07-19 16:40:36 +02:00
IntegratedQuantum
a65aba58d9 Add glass. 2023-07-17 22:07:42 +02:00
IntegratedQuantum
5ca4ab6a9d Fake reflections and transparency (both absorptive and regular transparency are possible) 2023-07-16 14:09:18 +02:00
IntegratedQuantum
1cf6fa087e Add some tall mountains and fix the subbiome chances. 2023-06-29 21:59:02 +02:00
IntegratedQuantum
64f5b363a4 Rewrite the biome system (there still some smaller things left to do) 2023-06-26 17:33:15 +02:00
IntegratedQuantum
4fcfd10307 Add music loading/playing using portaudio and stb_vorbis. 2023-06-05 23:11:40 +02:00
IntegratedQuantum
5341f7c48f Improve performance of the NoiseCaveGenerator by using a non-cached version of the 3d fractal noise. 2023-05-09 18:48:09 +02:00
IntegratedQuantum
fc12bd5a63 Add terrain generation. 2023-05-01 18:35:45 +02:00
IntegratedQuantum
38601dc42c Reduce raymarching pixel errors and add chunkmesh gpu memory usage to the debug menu. 2023-04-12 20:33:58 +02:00
IntegratedQuantum
914be9cf63 Add debug overlay and performance graph. 2023-04-04 19:22:02 +02:00
IntegratedQuantum
60f0c5d3af Add support for menu background scenes (but no default scene yet). 2023-04-04 11:30:02 +02:00
IntegratedQuantum
3b5b9fec8a Add till++'s beloved thin white line back to the item slots. 2023-04-03 20:25:24 +02:00
IntegratedQuantum
e0321c6cbf Various ui improvements proposed by @till++ 2023-04-03 19:01:49 +02:00
IntegratedQuantum
71159060a3 Use an icon for the crafting button. 2023-04-01 12:32:40 +02:00
IntegratedQuantum
da8f6ac9cb Add inventory crafting. 2023-03-31 20:37:39 +02:00
IntegratedQuantum
1400141e94 Render item images for blocks. 2023-03-28 16:33:01 +02:00
IntegratedQuantum
642624c94d Add the ItemSlot component. 2023-03-23 13:08:29 +01:00
IntegratedQuantum
77610c0064 Add the chat gui and set the default text color to white. 2023-03-22 13:59:46 +01:00
IntegratedQuantum
ef0f9ebf67 Allow ungrabbing the mouse by pressing escape and add a way to show the title bar of transparent windows. 2023-03-20 18:37:26 +01:00
IntegratedQuantum
9c20b463e3 Add a simple healthbar. 2023-03-19 23:25:31 +01:00
IntegratedQuantum
f04d441c3c Improve Bloom performance by combining downsampling and color extracting steps. 2023-03-19 19:20:42 +01:00
IntegratedQuantum
ba8856bd35 Add the crosshair. 2023-03-18 22:54:05 +01:00
IntegratedQuantum
fbb28869f6 Allow closing windows and zooming in/out. 2023-03-15 19:02:40 +01:00
IntegratedQuantum
b8f5b84322 Text can now be scrolled. 2023-03-11 17:45:20 +01:00
IntegratedQuantum
1c12ba3459 Add a texture for text fields. 2023-03-10 16:53:21 +01:00
IntegratedQuantum
6f76d0f214 Fix a couple bugs. 2023-03-09 11:23:36 +01:00
IntegratedQuantum
c2e888031f Add a TextInput component that supports multiline text editing. 2023-03-07 20:53:57 +01:00
IntegratedQuantum
b12f004d41 Load and save keyboard settings. 2023-03-04 19:59:09 +01:00
IntegratedQuantum
df73bc964e Add a Checkbox. 2023-03-01 16:43:05 +01:00
IntegratedQuantum
b5e8ba4d20 Add a Slider component. 2023-03-01 10:55:41 +01:00
IntegratedQuantum
61e2e417a2 Add textures for the button and window. 2023-02-24 13:25:59 +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
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
929d296fdc Rewrite mipmapping for the 10th time. 2023-01-21 19:05:02 +01:00
IntegratedQuantum
943d986e99 Mipmapping. 2023-01-14 20:22:57 +01:00
IntegratedQuantum
249b8baa3b Text rendering using mach-freetype. 2022-12-25 17:39:45 +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
a76fb8029e Rotate voxel models in the vertex shader. 2022-12-17 12:03:43 +01:00
IntegratedQuantum
06aa06be86 Fix small implementation error in binary heap. 2022-12-12 21:06:36 +01:00