Commit Graph

20 Commits

Author SHA1 Message Date
Benjamin_Loison e22f1f0e83 Reduce under the ground workload
As nobody (even developers) should go/see under the map.
2022-10-23 02:36:14 +02:00
Benjamin_Loison 76d64b6660 Fix #2: Optimize ground rendering using triangle strip 2022-10-23 01:52:24 +02:00
Benjamin_Loison f028ad7bb7 Make vertex shader use a switch 2022-10-23 00:12:09 +02:00
Benjamin_Loison 1fd3893e27 Add a frame timer 2022-10-23 00:03:38 +02:00
Benjamin_Loison 732c65914f Remove normals to try to firstly optimize chunks rendered 2022-10-22 23:52:08 +02:00
Benjamin_Loison fc8c713067 Add window title 2022-10-22 23:18:11 +02:00
Benjamin_Loison e102332d0b Make biomes display work correctly 2022-10-22 22:59:09 +02:00
Benjamin_Loison e36ce58f75 Shift chunks where they are supposed to be 2022-10-22 21:19:58 +02:00
Benjamin_Loison 655978efc2 Pass directly normal to the fragment shader 2022-10-22 19:47:40 +02:00
Benjamin_Loison 33628ef7bc loading all chunks at the same place 2022-10-19 01:50:49 +02:00
Benjamin_Loison f9d77ea119 Should make biomes working but it doesn't (using hardcode) 2022-10-17 03:26:19 +02:00
Benjamin_Loison c526ebe977 Ready to use an uniform array of textures for the biomes 2022-10-17 02:35:05 +02:00
Benjamin_Loison 02e28b2bc8 Use altitude: f32 and index: u32 instead of respectively position: vec3 and tex_coords: vec2
It reduces GPU memory usage from 20-21MiB to 16-17MiB.
2022-10-17 01:38:18 +02:00
Benjamin_Loison e6e30712b0 Remove a useless variable in the vertex shader 2022-10-17 00:27:44 +02:00
Benjamin_Loison e4f634a441 Make backface culling ready to use 2022-10-16 23:46:51 +02:00
Benjamin_Loison 5236c99383 Display a ground chunk with a given biome 2022-10-16 23:30:23 +02:00
Benjamin_Loison d75a564805 Removed commented OBJ loader that should have been removed before 3e64f976ca 2022-10-16 23:05:23 +02:00
Benjamin_Loison ea07e78b18 Display two textured triangles in 3D 2022-10-16 22:57:32 +02:00
Benjamin_Loison 238052c8a8 Display two not textured triangles in 3D with camera with horizontal rotation
Thanks to `glium/examples/teapot` which was loading an OBJ and not having any rotation for the camera.
2022-10-16 22:27:32 +02:00
Benjamin_Loison 2d19b54f97 Add initial README.md, Cargo.toml and src/main.rs 2022-10-16 19:02:59 +02:00