Browse Source
Reorganized shader code such that standard BiRP and PPV2 can share the same common code with only some light wrappers to implement the differences
sgsr2_fs
Reorganized shader code such that standard BiRP and PPV2 can share the same common code with only some light wrappers to implement the differences
sgsr2_fs
6 changed files with 76 additions and 12 deletions
-
2Packages/com.unity.postprocessing@3.2.2/PostProcessing/PostProcessResources.asset
-
49Packages/com.unity.postprocessing@3.2.2/PostProcessing/Runtime/Effects/Upscaling/SGSR2/Shaders/2_pass_fs/sgsr2_birp.shader
-
3Packages/com.unity.postprocessing@3.2.2/PostProcessing/Runtime/Effects/Upscaling/SGSR2/Shaders/2_pass_fs/sgsr2_birp.shader.meta
-
4Packages/com.unity.postprocessing@3.2.2/PostProcessing/Runtime/Effects/Upscaling/SGSR2/Shaders/2_pass_fs/sgsr2_convert.hlsl
-
25Packages/com.unity.postprocessing@3.2.2/PostProcessing/Runtime/Effects/Upscaling/SGSR2/Shaders/2_pass_fs/sgsr2_ppv2.shader
-
5Packages/com.unity.postprocessing@3.2.2/PostProcessing/Runtime/Effects/Upscaling/SGSR2/Shaders/2_pass_fs/sgsr2_upscale.hlsl
@ -0,0 +1,49 @@ |
|||
Shader "TND/sgsr2_2pass_fs" |
|||
{ |
|||
SubShader |
|||
{ |
|||
Cull Off ZWrite Off ZTest Always |
|||
|
|||
Pass |
|||
{ |
|||
Name "Convert" |
|||
|
|||
HLSLPROGRAM |
|||
#pragma vertex vert_img |
|||
#pragma fragment frag_convert |
|||
#pragma target 4.5 |
|||
#pragma enable_d3d11_debug_symbols |
|||
|
|||
#include "../sgsr2_birp.hlsl" |
|||
#include "sgsr2_convert.hlsl" |
|||
|
|||
void frag_convert(v2f_img i, out float4 MotionDepthClipAlphaBuffer: SV_Target) |
|||
{ |
|||
sgsr2_convert(i.uv, MotionDepthClipAlphaBuffer); |
|||
} |
|||
|
|||
ENDHLSL |
|||
} |
|||
|
|||
Pass |
|||
{ |
|||
Name "Upscale" |
|||
|
|||
HLSLPROGRAM |
|||
#pragma vertex vert_img |
|||
#pragma fragment frag_upscale |
|||
#pragma target 4.5 |
|||
#pragma enable_d3d11_debug_symbols |
|||
|
|||
#include "../sgsr2_birp.hlsl" |
|||
#include "sgsr2_upscale.hlsl" |
|||
|
|||
void frag_upscale(v2f_img i, out half4 OutputColor: SV_Target) |
|||
{ |
|||
sgsr2_upscale(i.uv, OutputColor); |
|||
} |
|||
|
|||
ENDHLSL |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,3 @@ |
|||
fileFormatVersion: 2 |
|||
guid: 4451c8b25af942ccaa8d6d0bb46a8e60 |
|||
timeCreated: 1735392260 |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue