add edits to compatibility version

pull/3236/head
epochwon 4 months ago
parent c1a9294e17
commit 82fe345280

@ -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…
Cancel
Save