summaryrefslogtreecommitdiff
path: root/Assets/Scripts/Unit/Components
diff options
context:
space:
mode:
Diffstat (limited to 'Assets/Scripts/Unit/Components')
-rw-r--r--Assets/Scripts/Unit/Components/UnitLensEffect.cs2
-rw-r--r--Assets/Scripts/Unit/Components/UnitPreprocessing.cs29
-rw-r--r--Assets/Scripts/Unit/Components/UnitState/PCState.cs2
3 files changed, 20 insertions, 13 deletions
diff --git a/Assets/Scripts/Unit/Components/UnitLensEffect.cs b/Assets/Scripts/Unit/Components/UnitLensEffect.cs
index ef8e6ee6..ff5af87d 100644
--- a/Assets/Scripts/Unit/Components/UnitLensEffect.cs
+++ b/Assets/Scripts/Unit/Components/UnitLensEffect.cs
@@ -65,7 +65,7 @@ public class UnitLensEffect : UnitComponent
/////
//m_Effects.Add(new LensEffect_MotionBlur());
//m_Effects.Add(new LensEffect_BlurRim(Color.blue));
- m_Effects.Add(new LensEffect_Buzz());
+ //m_Effects.Add(new LensEffect_Buzz());
}
public override void Release()
diff --git a/Assets/Scripts/Unit/Components/UnitPreprocessing.cs b/Assets/Scripts/Unit/Components/UnitPreprocessing.cs
index 30357615..44ab73b7 100644
--- a/Assets/Scripts/Unit/Components/UnitPreprocessing.cs
+++ b/Assets/Scripts/Unit/Components/UnitPreprocessing.cs
@@ -15,12 +15,15 @@ public class UnitPreprocessing : UnitComponent
WorldNormalTexture, // Unit World Normal Texture
}
- public EUnitPreprocessing preprocessing;
-
- public RenderTexture unitDepthTexture { get; private set; }
- public RenderTexture unitWorldNormalTexture { get; private set; }
-
- private CommandBuffer m_CBBeforeDepthTexture;
+ public EUnitPreprocessing preprocessing;
+
+ #region render textures
+ public RenderTexture unitDepthTexture { get; private set; }
+ public RenderTexture unitWorldNormalTexture { get; private set; }
+ public RenderTexture unitMotionVectorTexture { get; private set; }
+ #endregion
+
+ private CommandBuffer m_CBBeforeDepthTexture;
private Material m_MaterialDepth;
@@ -72,11 +75,11 @@ public class UnitPreprocessing : UnitComponent
private void OnWillRenderUnit()
{
- RenderDepthTexture();
- //RenderWorldNormal();
-
- MainCamera.Instance.camera.AddCommandBuffer(CameraEvent.BeforeDepthTexture, m_CBBeforeDepthTexture);
- }
+ RenderDepthTexture();
+ //RenderWorldNormal();
+ RenderMotionVector();
+ MainCamera.Instance.camera.AddCommandBuffer(CameraEvent.BeforeDepthTexture, m_CBBeforeDepthTexture);
+ }
void RenderDepthTexture()
{
@@ -99,6 +102,10 @@ public class UnitPreprocessing : UnitComponent
}
}
+ void RenderMotionVector()
+ {
+ }
+
//void RenderWorldNormal()
//{
// var cb = m_CBBeforeDepthTexture;
diff --git a/Assets/Scripts/Unit/Components/UnitState/PCState.cs b/Assets/Scripts/Unit/Components/UnitState/PCState.cs
index 1bdd355f..7e766455 100644
--- a/Assets/Scripts/Unit/Components/UnitState/PCState.cs
+++ b/Assets/Scripts/Unit/Components/UnitState/PCState.cs
@@ -144,7 +144,7 @@ public partial class PCState : UnitState
UnitSnapshotInfo info = owner.TakeSnapshot();
Vector2 dir = TestErika.Instance.monster.owner.center + new Vector3(offset, -0.5f, 0) - owner.center;
- LensEffect_Dash dash = new LensEffect_Dash(Color.white, 0.1f, Mathf.Atan2(dir.y, dir.x), info);
+ LensEffect_Dash dash = new LensEffect_Dash(Color.white, 0.05f, Mathf.Atan2(dir.y, dir.x), info);
owner.unitLensEffect.AddEffect(dash);
owner.center = TestErika.Instance.monster.owner.center + new Vector3(offset, -0.5f, 0);