summaryrefslogtreecommitdiff
path: root/Assets/Bundle/Shaders/Common/Image/common_img_blur.shader
diff options
context:
space:
mode:
Diffstat (limited to 'Assets/Bundle/Shaders/Common/Image/common_img_blur.shader')
-rw-r--r--Assets/Bundle/Shaders/Common/Image/common_img_blur.shader9
1 files changed, 7 insertions, 2 deletions
diff --git a/Assets/Bundle/Shaders/Common/Image/common_img_blur.shader b/Assets/Bundle/Shaders/Common/Image/common_img_blur.shader
index c7e3891d..f6c016b3 100644
--- a/Assets/Bundle/Shaders/Common/Image/common_img_blur.shader
+++ b/Assets/Bundle/Shaders/Common/Image/common_img_blur.shader
@@ -42,7 +42,7 @@
float _Angle;
- float4 _ScaleOffset; // 角色的范围
+ float4 _TileOffset; // 角色的范围
fixed _Distance;
@@ -57,7 +57,7 @@
fixed4 frag(v2f i) : SV_Target
{
_Angle = 0;
- _Distance = 0.05f;
+ _Distance = 0;
fixed2 uv = i.uv;
fixed2 offset = fixed2(0.05, 0.05);
@@ -72,6 +72,11 @@
color += tex2D(_MainTex,float2(uv.x + dx,uv.y + dy)) * (1 / sampleCount);
}
//color = tex2D(_MainTex, uv);
+ if(uv.x > _TileOffset.z && uv.x < _TileOffset.x + _TileOffset.z
+ && uv.y > _TileOffset.w && uv.y < _TileOffset.w + _TileOffset.y) {
+ color = fixed4(1,0,0,0);
+ }
+
return color;
}
ENDCG