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.
41 lines
1.0 KiB
41 lines
1.0 KiB
Shader "Hidden/Universal Render Pipeline/XR/XRMirrorView" |
|
{ |
|
SubShader |
|
{ |
|
Tags{ "RenderPipeline" = "UniversalPipeline" } |
|
|
|
HLSLINCLUDE |
|
#pragma exclude_renderers gles |
|
ENDHLSL |
|
|
|
// 0: TEXTURE2D |
|
Pass |
|
{ |
|
ZWrite Off ZTest Always Blend Off Cull Off |
|
|
|
HLSLPROGRAM |
|
#pragma vertex VertQuad |
|
#pragma fragment FragBilinear |
|
|
|
#define SRC_TEXTURE2D_X_ARRAY 0 |
|
#include "Packages/com.unity.render-pipelines.universal/Shaders/XR/XRMirrorView.hlsl" |
|
ENDHLSL |
|
} |
|
|
|
// 1: TEXTURE2D_ARRAY |
|
Pass |
|
{ |
|
ZWrite Off ZTest Always Blend Off Cull Off |
|
|
|
HLSLPROGRAM |
|
#pragma vertex VertQuad |
|
#pragma fragment FragBilinear |
|
|
|
#define SRC_TEXTURE2D_X_ARRAY 1 |
|
#include "Packages/com.unity.render-pipelines.universal/Shaders/XR/XRMirrorView.hlsl" |
|
ENDHLSL |
|
} |
|
} |
|
|
|
Fallback Off |
|
}
|
|
|