Merge branch 'master' of github.com:Kbz-8/42_vox

This commit is contained in:
Namonay
2025-06-01 20:18:01 +02:00
20 changed files with 250 additions and 69 deletions

View File

@@ -290,6 +290,7 @@ void Chunk::GenerateMesh()
int occ_count = (occ1 ? 1 : 0) + (occ2 ? 1 : 0) + (occ3 ? 1 : 0);
float ao = 1.0f - (occ_count * 0.2f);
vertex_color = Scop::Vec4f(Scop::Vec3f(base_color) * ao, 1.0f);
}
else