summaryrefslogtreecommitdiff
path: root/Assets/Bundle/Shaders/Common/Image/common_img_motionblur.shader
diff options
context:
space:
mode:
Diffstat (limited to 'Assets/Bundle/Shaders/Common/Image/common_img_motionblur.shader')
-rw-r--r--Assets/Bundle/Shaders/Common/Image/common_img_motionblur.shader11
1 files changed, 3 insertions, 8 deletions
diff --git a/Assets/Bundle/Shaders/Common/Image/common_img_motionblur.shader b/Assets/Bundle/Shaders/Common/Image/common_img_motionblur.shader
index 418d7347..2246fda2 100644
--- a/Assets/Bundle/Shaders/Common/Image/common_img_motionblur.shader
+++ b/Assets/Bundle/Shaders/Common/Image/common_img_motionblur.shader
@@ -7,7 +7,7 @@ Shader "Erika/Common/Image/MotionBlur"
_MainTex("Texture", 2D) = "white" {}
_Angle("Angle", float) = 0
_Distance("Distance", float) = 0
- _TileOffset("TileOffset", Vector) = (1,1,0,0)
+ _UnitTileOffset("TileOffset", Vector) = (1,1,0,0)
_Iterate("Iterate Count", float) = 1
}
@@ -29,7 +29,7 @@ Shader "Erika/Common/Image/MotionBlur"
#include "UnityCG.cginc"
- #include "Assets/Bundle/Shaders/Include/ImageEffect.cginc"
+ #include "./ImageEffect.cginc"
struct v2f
{
@@ -37,13 +37,8 @@ Shader "Erika/Common/Image/MotionBlur"
float4 vertex : SV_POSITION;
};
- sampler2D _MainTex;
- float4 _MainTex_ST;
-
float _Angle;
- float4 _TileOffset; // 角色的范围
-
fixed _Distance;
float _Iterate; // 迭代次数
@@ -67,7 +62,7 @@ Shader "Erika/Common/Image/MotionBlur"
fixed4 color = fixed4(0,0,0,0);
const float count = 20;
float step = _Distance / count;
- float amount = 0.15;
+ float amount = 0.2f;
for(int i = 0; i < count; ++i)
{
fixed2 uv = uv0 + step * i * fixed2(cos(radians(_Angle)), sin(radians(_Angle)));