You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
(Submitting for Carl.Lloyd) #rb Dmitriy.Dyomin, Laura.Hermanns #lockdown Jack.Porter #jira UE-120580 #preflight None #ROBOMERGE-OWNER: carl.lloyd #ROBOMERGE-AUTHOR: jack.porter #ROBOMERGE-SOURCE: CL 18916240 in //UE5/Release-5.0/... via CL 18926540 via CL 18927298 #ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v916-18915374) [CL 18927326 by carl lloyd in ue5-main branch]
31 lines
702 B
Plaintext
31 lines
702 B
Plaintext
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
#include "Common.ush"
|
|
|
|
#if USE_GLES_FBF_DEFERRED
|
|
#include "/Engine/Public/Platform/GL/GLSubpassSupport.ush"
|
|
#endif
|
|
|
|
void MobileDeferredCopyPLSPS(
|
|
noperspective float4 UVAndScreenPos : TEXCOORD0,
|
|
float4 SvPosition : SV_POSITION,
|
|
out half4 OutColor : SV_Target0)
|
|
{
|
|
#if USE_GLES_FBF_DEFERRED
|
|
OutColor = half4(GLSubpassFetch0().rgb, 1.0);
|
|
#else
|
|
OutColor = 1.0f;
|
|
#endif
|
|
}
|
|
|
|
void MobileDeferredCopyDepthPS(
|
|
noperspective float4 UVAndScreenPos : TEXCOORD0,
|
|
float4 SvPosition : SV_POSITION,
|
|
out float OutSceneDepthAux : SV_Target0)
|
|
{
|
|
#if USE_GLES_FBF_DEFERRED
|
|
OutSceneDepthAux = DepthbufferFetchES2();
|
|
#else
|
|
OutSceneDepthAux = 1.0f;
|
|
#endif
|
|
}
|