More realistic water presets
This commit is contained in:
parent
a9a6134633
commit
0ebdff628b
1 changed files with 5 additions and 3 deletions
|
@ -127,7 +127,7 @@ void WaterDefinition::applyPreset(WaterPreset preset)
|
||||||
if (preset == WATER_PRESET_LAKE)
|
if (preset == WATER_PRESET_LAKE)
|
||||||
{
|
{
|
||||||
transparency = 0.5;
|
transparency = 0.5;
|
||||||
reflection = 0.4;
|
reflection = 0.2;
|
||||||
transparency_depth = 4.0;
|
transparency_depth = 4.0;
|
||||||
material->base = colorToHSL(Color(0.08, 0.15, 0.2, 1.0));
|
material->base = colorToHSL(Color(0.08, 0.15, 0.2, 1.0));
|
||||||
depth_color->r = 0.0;
|
depth_color->r = 0.0;
|
||||||
|
@ -142,8 +142,8 @@ void WaterDefinition::applyPreset(WaterPreset preset)
|
||||||
}
|
}
|
||||||
else if (preset == WATER_PRESET_SEA)
|
else if (preset == WATER_PRESET_SEA)
|
||||||
{
|
{
|
||||||
transparency = 0.4;
|
transparency = 0.3;
|
||||||
reflection = 0.35;
|
reflection = 0.07;
|
||||||
transparency_depth = 3.0;
|
transparency_depth = 3.0;
|
||||||
material->base = colorToHSL(Color(0.05, 0.18, 0.2, 1.0));
|
material->base = colorToHSL(Color(0.05, 0.18, 0.2, 1.0));
|
||||||
depth_color->r = 0.0;
|
depth_color->r = 0.0;
|
||||||
|
@ -161,9 +161,11 @@ void WaterDefinition::applyPreset(WaterPreset preset)
|
||||||
material->base.a = 1.0;
|
material->base.a = 1.0;
|
||||||
material->reflection = 1.0;
|
material->reflection = 1.0;
|
||||||
material->shininess = 16.0;
|
material->shininess = 16.0;
|
||||||
|
material->hardness = 0.3;
|
||||||
foam_material->base = colorToHSL(Color(0.8, 0.8, 0.8, 1.0));
|
foam_material->base = colorToHSL(Color(0.8, 0.8, 0.8, 1.0));
|
||||||
foam_material->reflection = 0.1;
|
foam_material->reflection = 0.1;
|
||||||
foam_material->shininess = 1.5;
|
foam_material->shininess = 1.5;
|
||||||
|
foam_material->hardness = 0.2;
|
||||||
|
|
||||||
validate();
|
validate();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue