mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-29 03:36:40 +00:00
add edits to compatibility version
This commit is contained in:
parent
c1a9294e17
commit
82fe345280
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ void main()
|
||||||
for (int i = 0; i < positionCount; ++i)
|
for (int i = 0; i < positionCount; ++i)
|
||||||
{
|
{
|
||||||
float wavesize = wavesizeMultiplier * positions[i].z;
|
float wavesize = wavesizeMultiplier * positions[i].z;
|
||||||
float displace = clamp(2.0 * abs(length((positions[i].xy + offset) - gl_FragCoord.xy) / wavesize - 1.0), 0.0, 1.0);
|
float displace = clamp(0.2 * abs(length((positions[i].xy + offset) - gl_FragCoord.xy) / wavesize - 1.0) + 0.8, 0.0, 1.0);
|
||||||
color.rg = mix(vec2(-1.0), color.rg, displace);
|
color.rg = mix(vec2(-1.0), color.rg, displace);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue