Files
UnrealEngineUWP/Engine/Shaders/EyeAdaptationCommon.usf
Ben Marsh 20bf0eb6a1 Updating copyright notices to 2017 (copying from //Tasks/UE4/Dev-Copyright-2017).
#rb none
#lockdown Nick.Penwarden

[CL 3226823 by Ben Marsh in Main branch]
2016-12-08 08:52:44 -05:00

23 lines
708 B
Plaintext

// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
/*=============================================================================
EyeAdaptationCommon.usf: PostProcessing shared functions and structures.
=============================================================================*/
#ifndef __EYE_ADAPTATION_COMMON__
#define __EYE_ADAPTATION_COMMON__
// Single pixel RT used for EyeAdaptation, use function EyeAdaptationLookup() to access.
Texture2D EyeAdaptation;
#if FEATURE_LEVEL >= FEATURE_LEVEL_SM5
//Provides access to the EyeAdaptation RT. Only available in SM5.
float EyeAdaptationLookup()
{
return EyeAdaptation.Load(int3(0, 0, 0)).r;
}
#endif
#endif // __EYE_ADAPTATION_COMMON__