Fixed water animation conflict

This commit is contained in:
Anuken
2020-04-23 15:08:32 -04:00
parent 87ed405916
commit cafd076f9c
5 changed files with 15 additions and 12 deletions
+3 -3
View File
@@ -21,11 +21,11 @@ void main(){
float btime = u_time / 8000.0;
float noise = (texture2D(u_noise, (coords) / NSCALE + vec2(btime) * vec2(-0.9, 0.8)).r + texture2D(u_noise, (coords) / NSCALE + vec2(btime * 1.1) * vec2(-0.8, -1.0)).r) / 2.0;
vec3 color = texture2D(u_texture, c).rgb;
vec4 color = texture2D(u_texture, c);
if(!(noise > 0.54 && noise < 0.58)){
color *= 0.6;
color.rgb *= 0.6;
}
gl_FragColor = vec4(color.rgb, 1.0);
gl_FragColor = color;
}