diff --git a/Assets/VRM10/MToon10/Editor/MToonInspector.cs b/Assets/VRM10/MToon10/Editor/MToonInspector.cs index 488234c5e..0c8a3a05d 100644 --- a/Assets/VRM10/MToon10/Editor/MToonInspector.cs +++ b/Assets/VRM10/MToon10/Editor/MToonInspector.cs @@ -249,7 +249,6 @@ namespace VRM10.MToon10.Editor EditorGUILayout.LabelField("DstBlend", ((BlendMode)props[MToon10Prop.UnityDstBlend].floatValue).ToString()); EditorGUILayout.LabelField("ZWrite", ((UnityZWriteMode)props[MToon10Prop.UnityZWrite].floatValue).ToString()); EditorGUILayout.LabelField("AlphaToMask", ((UnityAlphaToMaskMode)props[MToon10Prop.UnityAlphaToMask].floatValue).ToString()); - EditorGUILayout.LabelField("XR Motion Vectors Pass (Space Warp)", (props[MToon10Prop.MotionVector].floatValue) > 0.5f ? "Enabled" : "Disabled"); EditorGUILayout.LabelField("Enabled Keywords", string.Join("\n", mat.shaderKeywords), EditorStyles.textArea); } } diff --git a/Assets/VRM10/MToon10/Runtime/UnityShaderLab/Properties/MToon10Prop.cs b/Assets/VRM10/MToon10/Runtime/UnityShaderLab/Properties/MToon10Prop.cs index b9078c6a1..f3e896097 100644 --- a/Assets/VRM10/MToon10/Runtime/UnityShaderLab/Properties/MToon10Prop.cs +++ b/Assets/VRM10/MToon10/Runtime/UnityShaderLab/Properties/MToon10Prop.cs @@ -56,9 +56,6 @@ UnityDstBlend, UnityZWrite, UnityAlphaToMask, - - // Motion Vector - MotionVector, // for Editor EditorEditMode, diff --git a/Assets/VRM10/MToon10/Runtime/UnityShaderLab/Properties/MToon10Properties.cs b/Assets/VRM10/MToon10/Runtime/UnityShaderLab/Properties/MToon10Properties.cs index a467fba78..fa9904d85 100644 --- a/Assets/VRM10/MToon10/Runtime/UnityShaderLab/Properties/MToon10Properties.cs +++ b/Assets/VRM10/MToon10/Runtime/UnityShaderLab/Properties/MToon10Properties.cs @@ -53,8 +53,6 @@ namespace VRM10.MToon10 [MToon10Prop.UnityZWrite] = "_M_ZWrite", [MToon10Prop.UnityAlphaToMask] = "_M_AlphaToMask", - [MToon10Prop.MotionVector] = "_XRMotionVectorsPass", - [MToon10Prop.EditorEditMode] = "_M_EditMode", }; diff --git a/Assets/VRM10/MToon10/Shaders/vrmc_materials_mtoon_urp.shader b/Assets/VRM10/MToon10/Shaders/vrmc_materials_mtoon_urp.shader index 224001b0c..881ea9aa0 100644 --- a/Assets/VRM10/MToon10/Shaders/vrmc_materials_mtoon_urp.shader +++ b/Assets/VRM10/MToon10/Shaders/vrmc_materials_mtoon_urp.shader @@ -57,14 +57,11 @@ Shader "VRM10/Universal Render Pipeline/MToon10" _M_ZWrite ("_ZWrite", Float) = 1.0 _M_AlphaToMask ("_AlphaToMask", Float) = 0.0 - // Motion Vector - _XRMotionVectorsPass("_XRMotionVectorsPass", Float) = 1.0 - // etc _M_DebugMode ("_DebugMode", Float) = 0.0 // for Editor - _M_EditMode ("_EditMode", Float) = 0.0 + _M_EditMode ("_EditMode", Float) = 0.0 } // Shader Model 3.0 @@ -84,32 +81,6 @@ Shader "VRM10/Universal Render Pipeline/MToon10" "IgnoreProjector" = "True" } - Pass - { - Name "XRMotionVectors" - Tags { "LightMode" = "XRMotionVectors" } - ColorMask RGBA - - // Stencil write for obj motion pixels - Stencil - { - WriteMask 1 - Ref 1 - Comp Always - Pass Replace - } - - HLSLPROGRAM - #pragma shader_feature_local _ALPHATEST_ON - #pragma multi_compile _ LOD_FADE_CROSSFADE - #pragma shader_feature_local_vertex _ADD_PRECOMPUTED_VELOCITY - #define APPLICATION_SPACE_WARP_MOTION 1 - - #include "Packages/com.unity.render-pipelines.universal/Shaders/BakedLitInput.hlsl" - #include_with_pragmas "Packages/com.unity.render-pipelines.universal/ShaderLibrary/ObjectMotionVectors.hlsl" - ENDHLSL - } - // Universal Forward Pass Pass {