1
0
Fork 0
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:
epochwon 2024-09-02 15:39:15 -04:00
parent c1a9294e17
commit 82fe345280

View file

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