diff options
Diffstat (limited to 'Assets/Scripts/Unit/LensEffect/LensEffect_Buzz.cs')
-rw-r--r-- | Assets/Scripts/Unit/LensEffect/LensEffect_Buzz.cs | 6 |
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); |