Skip to content

Commit

Permalink
More coloring changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Lord-Lelsers committed Feb 5, 2024
1 parent 63c67b3 commit ca3e82b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions underwater_world/src/chunk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,11 @@ impl Chunk {
let world_z_ratio = world_z / CHUNK_SIZE as f32;
let mix_ratio = util::create_mix_ratio(world::MIN_Z as f32, world::MAX_Z as f32, world_z_ratio);

// let saturation_intensity = (corner_a_idx % 4) as f32 / 12.0;
// let saturation_intensity = (corner_a_idx % 4) as f32 / 20.0;
let value_intensity = (corner_b_idx % 3) as f32 / 9.0;

let saturation_intensity = 0.0;
let value_intensity = (*tri_index % 3) as f32 / 9.0;
// let value_intensity = (*tri_index % 3) as f32 / 9.0;

let hue = MIN_HUE + (MAX_HUE - MIN_HUE) * mix_ratio;
let rgb_color = util::hsv_to_rgb(hue as f32, SATURATION + saturation_intensity, VALUE + value_intensity);
Expand Down

0 comments on commit ca3e82b

Please sign in to comment.