X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=shaders%2Fwater_fast.h;h=196c71ee738a0adea3e3f5860dccde17da6fab71;hb=c52e639cdcf6d21f69caa9625238afded7513ca4;hp=756f308cb3c4d01b8d50ad8e5fb73e04570f6f9d;hpb=403726131f9b460c3264e4f64c46f8aaa82978fe;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/shaders/water_fast.h b/shaders/water_fast.h index 756f308..196c71e 100644 --- a/shaders/water_fast.h +++ b/shaders/water_fast.h @@ -17,7 +17,7 @@ static struct vg_shader _shader_water_fast = { "\n" "#line 2 0 \n" "#line 1 2 \n" -"const float k_motion_lerp_amount = 0.05;\n" +"const float k_motion_lerp_amount = 0.01;\n" "\n" "#line 2 0 \n" "\n" @@ -26,6 +26,8 @@ static struct vg_shader _shader_water_fast = { "\n" "void vs_motion_out( vec4 vproj0, vec4 vproj1 )\n" "{\n" +" // This magically solves some artifacting errors!\n" +" //\n" " vproj1 = vproj0*(1.0-k_motion_lerp_amount) + vproj1*k_motion_lerp_amount;\n" "\n" " aMotionVec0 = vec3( vproj0.xy, vproj0.w );\n" @@ -186,7 +188,7 @@ static struct vg_shader _shader_water_fast = { "\n" "#line 17 0 \n" "#line 1 2 \n" -"const float k_motion_lerp_amount = 0.05;\n" +"const float k_motion_lerp_amount = 0.01;\n" "\n" "#line 2 0 \n" "\n"