More realistic water presets

This commit is contained in:
Michaël Lemaire 2013-12-25 19:55:05 +01:00
parent a9a6134633
commit 0ebdff628b

View file

@ -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();
}