Unity-NorthStar / data /Packages /com.unity.render-pipelines.universal /Shaders /ObjectMotionVectorFallback.shader
| Shader "Hidden/Universal Render Pipeline/ObjectMotionVectorFallback" | |
| { | |
| SubShader | |
| { | |
| Pass | |
| { | |
| Name "MotionVectors" | |
| Tags{ "LightMode" = "MotionVectors" } | |
| ColorMask RG | |
| HLSLPROGRAM | |
| ENDHLSL | |
| } | |
| Pass | |
| { | |
| Name "XRMotionVectors" | |
| Tags { "LightMode" = "XRMotionVectors" } | |
| ColorMask RGB | |
| // Stencil write for obj motion pixels | |
| Stencil | |
| { | |
| WriteMask 1 | |
| Ref 1 | |
| Comp Always | |
| Pass Replace | |
| } | |
| HLSLPROGRAM | |
| ENDHLSL | |
| } | |
| } | |
| } | |