Fixed lava

This commit is contained in:
Joshua Barretto 2022-06-29 21:42:41 +01:00
parent 07ba4dcc33
commit 2694f5f917
2 changed files with 2 additions and 2 deletions

View File

@ -391,7 +391,7 @@ void main() {
max_light += lights_at(f_pos, f_norm, view_dir, mu, cam_attenuation, fluid_alt, k_a, k_d, k_s, alpha, f_norm, 1.0, emitted_light, reflected_light); max_light += lights_at(f_pos, f_norm, view_dir, mu, cam_attenuation, fluid_alt, k_a, k_d, k_s, alpha, f_norm, 1.0, emitted_light, reflected_light);
reflected_light *= 0.3 + f_ao * 0.7; /* reflected_light *= 0.4 + f_ao * 0.6; */
#ifndef EXPERIMENTAL_NOCAUSTICS #ifndef EXPERIMENTAL_NOCAUSTICS
#if (FLUID_MODE == FLUID_MODE_SHINY) #if (FLUID_MODE == FLUID_MODE_SHINY)

View File

@ -699,7 +699,7 @@ fn write_column<R: Rng>(
} { } {
Block::new(BlockKind::Rock, col.stone_col) Block::new(BlockKind::Rock, col.stone_col)
} else { } else {
get_mushroom(wpos, rng).unwrap_or(block) get_mushroom(wpos, rng).unwrap_or(Block::air(SpriteKind::Empty))
} }
}); });
} }