From 0ebdff628b6fafd848387cdf35251857d293290e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Lemaire?= Date: Wed, 25 Dec 2013 19:55:05 +0100 Subject: [PATCH] More realistic water presets --- src/definition/WaterDefinition.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/definition/WaterDefinition.cpp b/src/definition/WaterDefinition.cpp index 5986251..a009a66 100644 --- a/src/definition/WaterDefinition.cpp +++ b/src/definition/WaterDefinition.cpp @@ -127,7 +127,7 @@ void WaterDefinition::applyPreset(WaterPreset preset) if (preset == WATER_PRESET_LAKE) { transparency = 0.5; - reflection = 0.4; + reflection = 0.2; transparency_depth = 4.0; material->base = colorToHSL(Color(0.08, 0.15, 0.2, 1.0)); depth_color->r = 0.0; @@ -142,8 +142,8 @@ void WaterDefinition::applyPreset(WaterPreset preset) } else if (preset == WATER_PRESET_SEA) { - transparency = 0.4; - reflection = 0.35; + transparency = 0.3; + reflection = 0.07; transparency_depth = 3.0; material->base = colorToHSL(Color(0.05, 0.18, 0.2, 1.0)); depth_color->r = 0.0; @@ -161,9 +161,11 @@ void WaterDefinition::applyPreset(WaterPreset preset) material->base.a = 1.0; material->reflection = 1.0; material->shininess = 16.0; + material->hardness = 0.3; foam_material->base = colorToHSL(Color(0.8, 0.8, 0.8, 1.0)); foam_material->reflection = 0.1; foam_material->shininess = 1.5; + foam_material->hardness = 0.2; validate(); }