Nenhuma descrição
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

ObjectMotionVectorFallback.shader 979B

1234567891011121314151617181920212223242526272829303132333435363738
  1. Shader "Hidden/Universal Render Pipeline/ObjectMotionVectorFallback"
  2. {
  3. SubShader
  4. {
  5. Pass
  6. {
  7. Name "MotionVectors"
  8. Tags{ "LightMode" = "MotionVectors" }
  9. ColorMask RG
  10. HLSLPROGRAM
  11. #include_with_pragmas "Packages/com.unity.render-pipelines.universal/ShaderLibrary/ObjectMotionVectors.hlsl"
  12. ENDHLSL
  13. }
  14. Pass
  15. {
  16. Name "XRMotionVectors"
  17. Tags { "LightMode" = "XRMotionVectors" }
  18. ColorMask RGB
  19. // Stencil write for obj motion pixels
  20. Stencil
  21. {
  22. WriteMask 1
  23. Ref 1
  24. Comp Always
  25. Pass Replace
  26. }
  27. HLSLPROGRAM
  28. #define APLICATION_SPACE_WARP_MOTION 1
  29. #include_with_pragmas "Packages/com.unity.render-pipelines.universal/ShaderLibrary/ObjectMotionVectors.hlsl"
  30. ENDHLSL
  31. }
  32. }
  33. }