Fixed water animation conflict
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user