r.Mobile.UseCSMShaderBranch
r.Mobile.UseCSMShaderBranch
#Overview
name: r.Mobile.UseCSMShaderBranch
This variable is created as a Console Variable (cvar).
- type:
Var
- help:
0: Use two shader permutations for CSM and non-CSM shading. (default)\n1: Use a single shader pemutation with a branch in a shader to apply CSM (only with r.AllowStaticLighting=0)
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/Core/Private/HAL/ConsoleManager.cpp:3508
Scope: file
Source code excerpt:
static TAutoConsoleVariable<int32> CVarMobileUseCSMShaderBranch(
TEXT("r.Mobile.UseCSMShaderBranch"),
0,
TEXT("0: Use two shader permutations for CSM and non-CSM shading. (default)\n"
"1: Use a single shader pemutation with a branch in a shader to apply CSM (only with r.AllowStaticLighting=0)"),
ECVF_RenderThreadSafe | ECVF_ReadOnly);
static TAutoConsoleVariable<int32> CVarMobileAllowDistanceFieldShadows(
#Loc: <Workspace>/Engine/Source/Runtime/Renderer/Private/LightMapRendering.cpp:17
Scope (from outer to inner):
file
function bool MobileUseCSMShaderBranch
Source code excerpt:
bool MobileUseCSMShaderBranch()
{
static const auto* CVar = IConsoleManager::Get().FindTConsoleVariableDataInt(TEXT("r.Mobile.UseCSMShaderBranch"));
return (CVar && CVar->GetValueOnAnyThread() != 0);
}
// One of these per lightmap quality
const TCHAR* GLightmapDefineName[2] =