summaryrefslogtreecommitdiff
path: root/Assets/Scripts/Unit/LensEffect/LensEffect_Buzz.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-10-02 18:46:26 +0800
committerchai <chaifix@163.com>2021-10-02 18:46:26 +0800
commit142b0b9264d9b8da81f173ec92d153d52f67ae06 (patch)
tree0dff442e6f7030fd9a60e9b2c08a24be97104c8f /Assets/Scripts/Unit/LensEffect/LensEffect_Buzz.cs
parentd9f2bb30c5d0eb8e8513a0e16e13e3c4f2af89e1 (diff)
*misc
Diffstat (limited to 'Assets/Scripts/Unit/LensEffect/LensEffect_Buzz.cs')
-rw-r--r--Assets/Scripts/Unit/LensEffect/LensEffect_Buzz.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Assets/Scripts/Unit/LensEffect/LensEffect_Buzz.cs b/Assets/Scripts/Unit/LensEffect/LensEffect_Buzz.cs
index 6aa06d01..252efc6e 100644
--- a/Assets/Scripts/Unit/LensEffect/LensEffect_Buzz.cs
+++ b/Assets/Scripts/Unit/LensEffect/LensEffect_Buzz.cs
@@ -15,11 +15,11 @@ public class LensEffect_Buzz : LensEffectBase
public override void AfterForwardAlpha(EStage stage, CommandBuffer cb)
{
- if (stage == EStage.Before)
+ if (stage == EStage.BeforeIterate)
{
Before(cb);
}
- else if (stage == EStage.After)
+ else if (stage == EStage.AfterIterate)
{
After(cb);
}
@@ -27,7 +27,7 @@ public class LensEffect_Buzz : LensEffectBase
void Before(CommandBuffer cb)
{
- MaterialEntry buzz = ClaimMaterial(StaticDefine.shaders[EShader.Buzz].name);
+ MaterialEntry buzz = GetTempMaterial(StaticDefine.shaders[EShader.Buzz].name);
cb.SetGlobalTexture("_UnitDepthTexture", owner.unitPreprocessing.unitDepthTexture);
cb.Blit(BuiltinRenderTextureType.CameraTarget, BuiltinRenderTextureType.CameraTarget, buzz.material);