@@ -8,7 +8,7 @@ namespace kTools.Motion
88 sealed class MotionVectorRenderPass : ScriptableRenderPass
99 {
1010#region Fields
11- const string kCameraShader = "Hidden/kMotion/CameraMotionVectors" ;
11+ // const string kCameraShader = "Hidden/kMotion/CameraMotionVectors";
1212 const string kObjectShader = "Hidden/kMotion/ObjectMotionVectors" ;
1313 const string kPreviousViewProjectionMatrix = "_PrevViewProjMatrix" ;
1414 const string kMotionVectorTexture = "_MotionVectorTexture" ;
@@ -21,7 +21,7 @@ sealed class MotionVectorRenderPass : ScriptableRenderPass
2121 } ;
2222
2323 RenderTargetHandle m_MotionVectorHandle ;
24- Material m_CameraMaterial ;
24+ // Material m_CameraMaterial;
2525 Material m_ObjectMaterial ;
2626 MotionData m_MotionData ;
2727#endregion
@@ -39,7 +39,7 @@ internal void Setup(MotionData motionData)
3939 {
4040 // Set data
4141 m_MotionData = motionData ;
42- m_CameraMaterial = new Material ( Shader . Find ( kCameraShader ) ) ;
42+ // m_CameraMaterial = new Material(Shader.Find(kCameraShader));
4343 m_ObjectMaterial = new Material ( Shader . Find ( kObjectShader ) ) ;
4444 }
4545
@@ -80,7 +80,7 @@ public override void Execute(ScriptableRenderContext context, ref RenderingData
8080 camera . depthTextureMode |= DepthTextureMode . MotionVectors | DepthTextureMode . Depth ;
8181
8282 // Drawing
83- DrawCameraMotionVectors ( context , cmd , camera ) ;
83+ // DrawCameraMotionVectors(context, cmd, camera);
8484 DrawObjectMotionVectors ( context , ref renderingData , cmd , camera ) ;
8585 }
8686 ExecuteCommand ( context , cmd ) ;
@@ -110,12 +110,12 @@ DrawingSettings GetDrawingSettings(ref RenderingData renderingData)
110110 return drawingSettings ;
111111 }
112112
113- void DrawCameraMotionVectors ( ScriptableRenderContext context , CommandBuffer cmd , Camera camera )
114- {
115- // Draw fullscreen quad
116- cmd . DrawProcedural ( Matrix4x4 . identity , m_CameraMaterial , 0 , MeshTopology . Triangles , 3 , 1 ) ;
117- ExecuteCommand ( context , cmd ) ;
118- }
113+ // void DrawCameraMotionVectors(ScriptableRenderContext context, CommandBuffer cmd, Camera camera)
114+ // {
115+ // // Draw fullscreen quad
116+ // cmd.DrawProcedural(Matrix4x4.identity, m_CameraMaterial, 0, MeshTopology.Triangles, 3, 1);
117+ // ExecuteCommand(context, cmd);
118+ // }
119119
120120 void DrawObjectMotionVectors ( ScriptableRenderContext context , ref RenderingData renderingData , CommandBuffer cmd , Camera camera )
121121 {
0 commit comments