diff --git a/index.html b/index.html index c40a3f661c4be19cfcc3172683827f458822674f..f4d29e248f25ca11a1a1ab00a699992001f7c70a 100644 --- a/index.html +++ b/index.html @@ -46,7 +46,7 @@ vec2 currentVelocity = texture2D(u_velocity, fragCoord/u_textureSize).xy; //implicitly solve advection - + if (length(currentVelocity) == 0.0) {//no velocity gl_FragColor = vec4(texture2D(u_material, fragCoord/u_textureSize).x, 0, 0, 0); return;