X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=shaders%2Falphatest.h;h=25e58795ec18da791c1124970eaca74933978860;hb=65de5fb65850b8eb282455d15ca7466b656c1ef8;hp=8b06893f0b88a6fefae287b57e22af32c36d26cc;hpb=403726131f9b460c3264e4f64c46f8aaa82978fe;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/shaders/alphatest.h b/shaders/alphatest.h index 8b06893..25e5879 100644 --- a/shaders/alphatest.h +++ b/shaders/alphatest.h @@ -17,7 +17,7 @@ static struct vg_shader _shader_alphatest = { "\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_alphatest = { "\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" @@ -182,7 +184,7 @@ static struct vg_shader _shader_alphatest = { "\n" "#line 13 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"