diff options
Diffstat (limited to 'Assets/Scripts/Unit/Components/UnitLensEffect.cs')
-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)
{
|