Brak opisu
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CopyDepth.shader 636B

12345678910111213141516171819202122232425
  1. Shader "Hidden/Universal Render Pipeline/CopyDepth"
  2. {
  3. SubShader
  4. {
  5. Tags { "RenderType" = "Opaque" "RenderPipeline" = "UniversalPipeline"}
  6. Pass
  7. {
  8. Name "CopyDepth"
  9. ZTest Always ZWrite On ColorMask R
  10. Cull Off
  11. HLSLPROGRAM
  12. #pragma vertex Vert
  13. #pragma fragment frag
  14. #pragma multi_compile _ _DEPTH_MSAA_2 _DEPTH_MSAA_4 _DEPTH_MSAA_8
  15. #pragma multi_compile _ _OUTPUT_DEPTH
  16. #include "Packages/com.unity.render-pipelines.universal/Shaders/Utils/CopyDepthPass.hlsl"
  17. ENDHLSL
  18. }
  19. }
  20. }