diff options
author | chai <chaifix@163.com> | 2021-09-22 19:25:56 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-09-22 19:25:56 +0800 |
commit | 2f310aa9f3f1cb1d51e8f62a6d5e3dda4821b82b (patch) | |
tree | defb1bd9e61fc8b0575337c2fdf73754f2fd1e20 /Assets/Scripts/Unit/Components | |
parent | 84fdd90eac4431fa278c11d7664c1d954f80b883 (diff) |
*effect
Diffstat (limited to 'Assets/Scripts/Unit/Components')
-rw-r--r-- | Assets/Scripts/Unit/Components/UnitLensEffect.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Assets/Scripts/Unit/Components/UnitLensEffect.cs b/Assets/Scripts/Unit/Components/UnitLensEffect.cs index a61955f7..394a0b92 100644 --- a/Assets/Scripts/Unit/Components/UnitLensEffect.cs +++ b/Assets/Scripts/Unit/Components/UnitLensEffect.cs @@ -57,7 +57,8 @@ public class UnitLensEffect : UnitComponent MainCamera.Instance.customRenderingPipeline.onPostRender += OnRenderUnit; ///// - m_Effects.Add(new LensEffect_MotionBlur()); + //m_Effects.Add(new LensEffect_MotionBlur());
+ m_Effects.Add(new LensEffect_BlurRim()); } public override void Release() @@ -90,6 +91,7 @@ public class UnitLensEffect : UnitComponent MethodInfo method = eff.GetType().GetMethod(re.ToString(), BindingFlags.Instance | BindingFlags.Public, null, new Type[] { typeof(LensEffectBase.EStage), typeof(CommandBuffer) }, null);
if (method == null)
continue;
+ eff.owner = owner;
method.Invoke(eff, new object[] { LensEffectBase.EStage.Before, cb.Value });
for (int j = 0; j < body.renderers.Length; ++j)
{
|