Commit graph

106 commits

Author SHA1 Message Date
df7f78163d
Remove unused uses 2021-06-01 19:58:52 +02:00
e78878150d
Implement simple text renderer 2021-06-01 19:58:11 +02:00
4af16fb974
Use RenderContext for TextureManager::new 2021-06-01 17:54:53 +02:00
bfa7a48483
Move basic rendering context to RenderContext
This way they can be passed around much more easily
2021-06-01 16:47:28 +02:00
a3236f610a
Move a bunch of WorldState related things to WorldState 2021-06-01 16:27:12 +02:00
7fdee1dbda
Change to 64x64x64 chunks, parallellize worldgen and geometry generation 2021-06-01 16:03:46 +02:00
aec8d36647
Remove unused Chunk::raycast 2021-06-01 16:00:03 +02:00
6c6a321a0c
Make adding/removing blocks work on the entire world 2021-06-01 14:19:27 +02:00
65f0a706d3
Cull invisible block faces, reintroduce removing/adding blocks 2021-06-01 10:48:30 +02:00
ff20d5ad29
Add super cool water 2021-05-31 21:24:59 +02:00
1f0a1975a5
Add water textures 2021-05-31 21:22:44 +02:00
0d7df1d501
Move state stuff to its own folder 2021-05-31 18:34:09 +02:00
bf22190ccd
Move HUD-related code to its own file 2021-05-31 18:31:20 +02:00
1740b80bf0
Remove some unused assets 2021-05-31 15:43:31 +02:00
4b9e4248bc
Fix instance creation on some devices 2021-05-31 15:34:37 +02:00
6231a83552
Update crossbeam 2021-05-31 15:02:29 +02:00
6531e3ee1c
Fix some warnings 2021-05-31 14:44:11 +02:00
72969e392b
Remove unused index_indices 2021-05-31 14:43:58 +02:00
54549b8e16
Fix alignment in cube::vertices 2021-05-31 14:38:44 +02:00
c08ff4b6eb
Cleanup chunk meshification 2021-05-31 14:30:11 +02:00
c922bc0855
Fix Vertex buffer size 2021-05-31 14:00:57 +02:00
503288733c
Meshify chunks and switch to texture arrays from the atlas 2021-05-31 13:41:41 +02:00
e23c4549a2
Play around with webgpu 2021-05-31 04:49:38 +02:00
dc95af56f2
oops 2021-05-31 04:01:33 +02:00
033c257d3b
Meshify chunks 2021-05-31 04:01:03 +02:00
da7f7759ad
Fix terrain generation 2021-05-31 03:55:16 +02:00
229804b306
Enable optimization by default for dependencies 2021-05-31 03:54:53 +02:00
fd84429c22
Add debug texture 2021-05-31 03:54:37 +02:00
f802bbe5a2
Use constants for terrain gen parameters 2021-05-30 14:21:25 +02:00
1c23e0f622
Slightly improve worldgen 2021-05-30 14:12:10 +02:00
7d4bccf187
Move camera to above terrain 2021-05-30 14:12:04 +02:00
340e208cda
Update .gitignore 2021-05-30 13:26:25 +02:00
61ec4c4da5
Add world generation, better fps stats, multiple chunks, grass/stone blocks 2021-05-30 13:25:47 +02:00
248a634ecb
Add (yet) unused AABB implementation 2021-05-30 03:52:16 +02:00
1bda22acbf
Switch to ahash for some free performance 2021-05-30 03:48:43 +02:00
ea31c2d4dd
Implement placing blocks 2021-05-30 03:48:26 +02:00
b30ee9ec3b
Move cubes to [0.0, 1.0] to fix raycasting 2021-05-30 02:08:31 +02:00
f0dace2266
Significantly improve the raycasting algorithm 2021-05-30 01:38:24 +02:00
c3b03c2723
Rename chunk::dda to raycast 2021-05-30 00:14:44 +02:00
8bf15dc924
Add block highlighting 2021-05-30 00:12:33 +02:00
3674f1020f
Add some UI, major cleanup 2021-05-29 22:49:12 +02:00
4c27d26882
Replace GUI textures with minecraft ones
it's fun to be at the D-M-C-A
2021-05-29 22:34:23 +02:00
3606299358
Add GUI textures 2021-05-29 19:35:42 +02:00
ff0fc6cdee
Clean up DDA a bit 2021-05-29 19:26:55 +02:00
17fbd875e2
Implement Chunk, including a raycasting algorithm 2021-05-29 19:07:40 +02:00
1b1daad1f7
Update dependencies 2021-05-29 19:04:19 +02:00
5d1aa6ce96
Add upwards movement, make camera pitch not shit itself 2021-05-29 01:05:04 +02:00
eee0287d7f
We mousing 2021-05-28 23:21:20 +02:00
dc5ed8eb9a
Split up State::new 2021-05-28 21:45:12 +02:00
7dbe316637
Fix textures, implement lighting, clean up, etc 2021-05-28 21:11:31 +02:00