r.Mobile.PlanarReflectionMode
r.Mobile.PlanarReflectionMode
#Overview
name: r.Mobile.PlanarReflectionMode
This variable is created as a Console Variable (cvar).
- type:
Var
- help:
The PlanarReflection will work differently on different mode on mobile platform, choose the proper mode as expect.\n0: The PlanarReflection actor works as usual on all platforms. [default]\n1: The PlanarReflection actor is only used for mobile pixel projection reflection, it will not affect PC/Console. MobileMSAA will be disabled as a side effect.\n2: The PlanarReflection actor still works as usual on PC/Console platform and is used for mobile pixel projected reflection on mobile platform. MobileMSAA will be disabled as a side effect.\n
It is referenced in 2
C++ source files.
#Summary
#References in C++ code
#Callsites
This variable is referenced in the following C++ source code:
#Loc: <Workspace>/Engine/Source/Runtime/Renderer/Private/PostProcess/PostProcessPixelProjectedReflectionMobile.cpp:15
Scope: file
Source code excerpt:
static TAutoConsoleVariable<int32> CVarMobilePlanarReflectionMode(
TEXT("r.Mobile.PlanarReflectionMode"),
0,
TEXT("The PlanarReflection will work differently on different mode on mobile platform, choose the proper mode as expect.\n")
TEXT("0: The PlanarReflection actor works as usual on all platforms. [default]\n")
TEXT("1: The PlanarReflection actor is only used for mobile pixel projection reflection, it will not affect PC/Console. MobileMSAA will be disabled as a side effect.\n")
TEXT("2: The PlanarReflection actor still works as usual on PC/Console platform and is used for mobile pixel projected reflection on mobile platform. MobileMSAA will be disabled as a side effect.\n"),
ECVF_ReadOnly | ECVF_RenderThreadSafe
#Loc: <Workspace>/Engine/Source/Runtime/Engine/Private/Scene.cpp:12
Scope (from outer to inner):
file
function int32 GetMobilePlanarReflectionMode
Source code excerpt:
int32 GetMobilePlanarReflectionMode()
{
static const auto MobilePlanarReflectionModeCVar = IConsoleManager::Get().FindTConsoleVariableDataInt(TEXT("r.Mobile.PlanarReflectionMode"));
return MobilePlanarReflectionModeCVar->GetValueOnAnyThread();
}
int32 GetMobilePixelProjectedReflectionQuality()
{