Rasagar/Library/PackageCache/com.unity.render-pipelines.universal/Shaders/XR/XRMirrorView.shader

35 lines
1.1 KiB
Plaintext
Raw Normal View History

2024-08-26 13:07:20 -07:00
Shader "Hidden/Universal Render Pipeline/XR/XRMirrorView"
{
SubShader
{
Tags{ "RenderPipeline" = "UniversalPipeline" }
HLSLINCLUDE
// Foveated rendering currently not supported in dxc on metal
#pragma never_use_dxc metal
ENDHLSL
Pass
{
ZWrite Off ZTest Always Blend Off Cull Off
HLSLPROGRAM
#pragma vertex VertQuad
#pragma fragment FragBilinear
#pragma multi_compile_local_fragment _ HDR_COLORSPACE_CONVERSION_AND_ENCODING
#pragma multi_compile_fragment _ DISABLE_TEXTURE2D_X_ARRAY
#if defined(DISABLE_TEXTURE2D_X_ARRAY)
#define SRC_TEXTURE2D_X_ARRAY 0
#else
#define SRC_TEXTURE2D_X_ARRAY 1
#endif
#include_with_pragmas "Packages/com.unity.render-pipelines.core/ShaderLibrary/FoveatedRenderingKeywords.hlsl"
#include "Packages/com.unity.render-pipelines.universal/Shaders/XR/XRMirrorView.hlsl"
ENDHLSL
}
}
Fallback Off
}