flickering fixed !

This commit is contained in:
2024-07-31 01:12:45 +03:00
parent b7eae98d0d
commit 222b68c0a3
5 changed files with 7 additions and 8 deletions

View File

@ -77,8 +77,8 @@ static void ingame_tick(struct state *state) {
set_camera(&cam);
for (int y = 64; --y;)
for (int x = 64; --x;) {
for (int y = 64; y--;)
for (int x = 64; x--;) {
float d0 = sample_perlin_2d((t_fvec2){x, y}, 0.2, 5) * 8 - 6;
float d1 = sample_perlin_2d((t_fvec2){x + 1, y}, 0.2, 5) * 8 - 6;
float d2 = sample_perlin_2d((t_fvec2){x + 1, y - 1}, 0.2, 5) * 8 - 6;