summaryrefslogtreecommitdiff
path: root/Assets/Bundle/Shaders/Common
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-09-22 19:25:56 +0800
committerchai <chaifix@163.com>2021-09-22 19:25:56 +0800
commit2f310aa9f3f1cb1d51e8f62a6d5e3dda4821b82b (patch)
treedefb1bd9e61fc8b0575337c2fdf73754f2fd1e20 /Assets/Bundle/Shaders/Common
parent84fdd90eac4431fa278c11d7664c1d954f80b883 (diff)
*effect
Diffstat (limited to 'Assets/Bundle/Shaders/Common')
-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