study/first_study/Library/PackageCache/com.unity.render-pipelines.universal@d10049dfa479/Shaders/ObjectMotionVectorFallback.shader
jh04010421 739d49f1a0 Unity | 2026.01.20
수업 실습 파일
2026-01-20 11:01:57 +09:00

39 lines
980 B
Plaintext

Shader "Hidden/Universal Render Pipeline/ObjectMotionVectorFallback"
{
SubShader
{
Pass
{
Name "MotionVectors"
Tags{ "LightMode" = "MotionVectors" }
ColorMask RG
HLSLPROGRAM
#include_with_pragmas "Packages/com.unity.render-pipelines.universal/ShaderLibrary/ObjectMotionVectors.hlsl"
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
#define APPLICATION_SPACE_WARP_MOTION 1
#include_with_pragmas "Packages/com.unity.render-pipelines.universal/ShaderLibrary/ObjectMotionVectors.hlsl"
ENDHLSL
}
}
}