Some toying with shader

This commit is contained in:
Piotrek
2021-05-11 13:35:47 +02:00
parent 0c7f07bc7b
commit 6acdd51b05
2 changed files with 24 additions and 9 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ use crate::game::world::block::WorldBlock;
//note: remember to update in main.frag
pub const BLOCK_SIZE : usize = 32; // 32x32x32 block size
pub const BLOCK_TEX_SIZE : usize = 32; // 32x32x32 blocks in texture (1GB)
pub const BLOCK_TEX_SIZE : usize = 40; // number of blocks in texture (32^3 = 1GB, 40^3 = 2GB)
pub const NODE_TEX_SIZE: usize = 128; // 32x32x32 nodes in texture
const BLOCK_SIZE_QB: usize = BLOCK_SIZE*BLOCK_SIZE*BLOCK_SIZE;