summaryrefslogtreecommitdiff
path: root/Assets/Scripts/Unit/LensEffect/LensEffect_Buzz.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2022-03-10 14:07:40 +0800
committerchai <chaifix@163.com>2022-03-10 14:07:40 +0800
commit22891bf59032ba88262824255a706d652031384b (patch)
tree7595439ba9966c9402d37e37cee5e8cf098757d5 /Assets/Scripts/Unit/LensEffect/LensEffect_Buzz.cs
parent8b04ea73e540067f83870b61d89db4868fea5e8a (diff)
* move folder
Diffstat (limited to 'Assets/Scripts/Unit/LensEffect/LensEffect_Buzz.cs')
-rw-r--r--Assets/Scripts/Unit/LensEffect/LensEffect_Buzz.cs41
1 files changed, 0 insertions, 41 deletions
diff --git a/Assets/Scripts/Unit/LensEffect/LensEffect_Buzz.cs b/Assets/Scripts/Unit/LensEffect/LensEffect_Buzz.cs
deleted file mode 100644
index 252efc6e..00000000
--- a/Assets/Scripts/Unit/LensEffect/LensEffect_Buzz.cs
+++ /dev/null
@@ -1,41 +0,0 @@
-using System.Collections;
-using System.Collections.Generic;
-using UnityEngine;
-using UnityEngine.Rendering;
-
-// 蜂鸣
-public class LensEffect_Buzz : LensEffectBase
-{
- public override ERenderingEvent renderingEvents => ERenderingEvent.AfterForwardAlpha;
-
- public LensEffect_Buzz() : base()
- {
-
- }
-
- public override void AfterForwardAlpha(EStage stage, CommandBuffer cb)
- {
- if (stage == EStage.BeforeIterate)
- {
- Before(cb);
- }
- else if (stage == EStage.AfterIterate)
- {
- After(cb);
- }
- }
-
- void Before(CommandBuffer cb)
- {
- MaterialEntry buzz = GetTempMaterial(StaticDefine.shaders[EShader.Buzz].name);
-
- cb.SetGlobalTexture("_UnitDepthTexture", owner.unitPreprocessing.unitDepthTexture);
- cb.Blit(BuiltinRenderTextureType.CameraTarget, BuiltinRenderTextureType.CameraTarget, buzz.material);
- }
-
- void After(CommandBuffer cb)
- {
-
- }
-
-} \ No newline at end of file