]> git.sesse.net Git - nageru/blobdiff - smoothness.frag
Fix some errors in the smoothness term.
[nageru] / smoothness.frag
index 4dc06f3699dc526d804e82c879c4a4d2809243e1..583231ed90b233b69489facaa4d4a93641c8cce4 100644 (file)
@@ -13,7 +13,7 @@ uniform sampler2D flow_tex, diff_flow_tex;
 
 float diffusivity(float u_x, float u_y, float v_x, float v_y)
 {
-       return -inversesqrt(u_x * u_x + u_y * u_y + v_x * v_x + v_y * v_y + eps_sq);
+       return inversesqrt(u_x * u_x + u_y * u_y + v_x * v_x + v_y * v_y + eps_sq);
 }
 
 void main()