diff --git a/crates/horizon-client/src/gfx/hd.rs b/crates/horizon-client/src/gfx/hd.rs index 031e9f2de..f078d423c 100644 --- a/crates/horizon-client/src/gfx/hd.rs +++ b/crates/horizon-client/src/gfx/hd.rs @@ -558,7 +558,8 @@ fn wave_gradient(xz: vec2, footprint: f32) -> vec2 { let phase = dot(k, xz) - omega * frame.water.y + w.w; grad += (k / len) * (w.z * fade * cos(phase)); } - return grad; + // A little higher than the table's slopes. + return grad * 1.25; } fn cascade_at(p: vec3, c: i32) -> vec3 { @@ -713,10 +714,10 @@ fn fs_water(in: FullOut) -> @location(0) vec4 { // A deep, dark water: the biome's colour darkened and a little greyed, so it reads as // depth rather than as bright paint. let biome = clamp(tint.rgb, vec3(0.03), vec3(1.0)); - let colour = mix(vec3(dot(biome, vec3(0.333))), biome, 0.85) * vec3(0.92, 1.0, 1.0); + let colour = mix(vec3(dot(biome, vec3(0.333))), biome, 0.85) * vec3(0.78, 0.86, 0.95); // The colours the water takes up fastest are the ones it has the least of. - let absorb = exp(-(vec3(1.0) - colour) * 0.8 * (thickness + 0.3)); - let refracted = behind * absorb + colour * volume_light * mix(0.85, 0.4, frame.sun_color.a) * (vec3(1.0) - absorb); + let absorb = exp(-(vec3(1.0) - colour) * 0.6 * (thickness + 0.3)); + let refracted = behind * absorb + colour * volume_light * mix(0.65, 0.3, frame.sun_color.a) * (vec3(1.0) - absorb); // Reflection: the screen where the ray stays on it, the sky where it leaves it or misses. var r = reflect(-v, n);