improved water shader

This commit is contained in:
2024-09-08 01:42:13 -04:00
parent d58570f646
commit 0c81742f11
6 changed files with 141 additions and 11 deletions

View File

@@ -105,14 +105,15 @@ fn setup_materials(
) {
let water_material = water_materials.add(ExtendedMaterial {
base: StandardMaterial {
base_color: Color::srgba(0., 0.5, 1., 0.8),
base_color: Color::srgb(0., 0.878, 1.),
alpha_mode: AlphaMode::Blend,
..Default::default()
},
extension: WaterMaterial {
settings: WaterSettings {
offset: 0.5,
scale: 100.,
offset: -4.97,
scale: 1.,
deep_color: LinearRgba::rgb(0.0, 0.04, 0.085).into(),
..Default::default()
},
..default()