diff options
author | chai <chaifix@163.com> | 2021-10-01 10:04:00 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-10-01 10:04:00 +0800 |
commit | f0ae9393da021fe16af32f7ae1a3245f27050f92 (patch) | |
tree | eb3618a8661c6771098cdfe796bdff50b4e75328 /Assets/Scripts/Unit/LensEffect/LensEffect_Buzz.cs | |
parent | 5b19af7f51ad4504fc426b8387442f6b868b5f61 (diff) |
*misc
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 55e8c772..6aa06d01 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.Before) { Before(cb); } - else if(stage == EStage.After) + else if (stage == EStage.After) { After(cb); } @@ -28,7 +28,7 @@ public class LensEffect_Buzz : LensEffectBase void Before(CommandBuffer cb) { MaterialEntry buzz = ClaimMaterial(StaticDefine.shaders[EShader.Buzz].name); - + cb.SetGlobalTexture("_UnitDepthTexture", owner.unitPreprocessing.unitDepthTexture); cb.Blit(BuiltinRenderTextureType.CameraTarget, BuiltinRenderTextureType.CameraTarget, buzz.material); } |