diff options
-rw-r--r-- | Assets/Scripts/Unit/Components/UnitLensEffect.cs | 2 | ||||
-rw-r--r-- | Assets/Scripts/Unit/LensEffect/LensEffect_MotionBlur.cs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Assets/Scripts/Unit/Components/UnitLensEffect.cs b/Assets/Scripts/Unit/Components/UnitLensEffect.cs index fee02a7c..a61955f7 100644 --- a/Assets/Scripts/Unit/Components/UnitLensEffect.cs +++ b/Assets/Scripts/Unit/Components/UnitLensEffect.cs @@ -15,7 +15,7 @@ public class UnitLensEffect : UnitComponent private List<LensEffectBase> m_Effects; - // 每个角色维护单独的command buffers,而不是共享command buffer + // 每个角色维护单独的command buffers,而不是共享command buffer。有一定开销,但不重要。 private Dictionary<ERenderingEvent, CommandBuffer> m_InUseCommandBuffers;
private Dictionary<ERenderingEvent, CommandBuffer> m_CachedCommandBuffers;
diff --git a/Assets/Scripts/Unit/LensEffect/LensEffect_MotionBlur.cs b/Assets/Scripts/Unit/LensEffect/LensEffect_MotionBlur.cs index 086c92eb..decee999 100644 --- a/Assets/Scripts/Unit/LensEffect/LensEffect_MotionBlur.cs +++ b/Assets/Scripts/Unit/LensEffect/LensEffect_MotionBlur.cs @@ -15,7 +15,7 @@ public class LensEffect_MotionBlur : LensEffectBase public override void AfterImageEffectsOpaque(EStage stage, CommandBuffer cb)
{
- if(stage == EStage.Before)
+ if (stage == EStage.Before)
{
tempID = Shader.PropertyToID("_Temp1");
|