35 lines
1.1 KiB
Plaintext
35 lines
1.1 KiB
Plaintext
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
|
|
}
|