1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-16 16:20:53 +00:00

Update water_fragment.glsl

This commit is contained in:
wareya 2021-10-26 03:07:33 +00:00
parent 1848f7f915
commit 03733a30b0

View File

@ -105,11 +105,11 @@ vec4 circle(vec2 coords, vec2 uv, float adjusted_time)
float height = blip(ringfollower);
vec4 ret = vec4(normal.x, normal.y, height, height);
ret.xyw *= energy;
ret.xyz = normalize(ret.xyz);
ret.xyz = normalize(ret.x, ret.y, ret.z+0.001);
return ret;
}
const float RAIN_RING_TIME_OFFSET = 1/6.0;
const float RAIN_RING_TIME_OFFSET = 1.0/6.0;
vec4 rain(vec2 uv, float time)
{
vec2 i_part = floor(uv * RAIN_RIPPLE_GAPS);