r.AllowPointLightCubemapShadows
r.AllowPointLightCubemapShadows
#Overview
name: r.AllowPointLightCubemapShadows
The value of this variable can be defined or overridden in .ini config files. 1
.ini config file referencing this setting variable.
This variable is created as a Console Variable (cvar).
- type:
Var
- help:
When 0, will prevent point light cube map shadows from being used and the light will be unshadowed.
It is referenced in 2
C++ source files.
#Summary
#Setting Variables
#References In INI files
Location: <Workspace>/Engine/Config/BaseDeviceProfiles.ini:297, section: [IOS DeviceProfile]
- INI Section:
IOS DeviceProfile
- Raw value:
0
- Is Array:
False
#References in C++ code
#Callsites
This variable is referenced in the following C++ source code:
#Loc: <Workspace>/Engine/Source/Runtime/Engine/Private/Components/PointLightComponent.cpp:17
Scope: file
Source code excerpt:
int32 GAllowPointLightCubemapShadows = 1;
static FAutoConsoleVariableRef CVarAllowPointLightCubemapShadows(
TEXT("r.AllowPointLightCubemapShadows"),
GAllowPointLightCubemapShadows,
TEXT("When 0, will prevent point light cube map shadows from being used and the light will be unshadowed.")
);
void FLocalLightSceneProxy::UpdateRadius_GameThread(float ComponentRadius)
{
#Loc: <Workspace>/Engine/Source/Runtime/Apple/MetalRHI/Private/MetalRHI.cpp:577
Scope: file
Source code excerpt:
{
// Disable point light cubemap shadows on Mac Metal as currently they aren't supported.
static auto CVarCubemapShadows = IConsoleManager::Get().FindConsoleVariable(TEXT("r.AllowPointLightCubemapShadows"));
if(CVarCubemapShadows && CVarCubemapShadows->GetInt() != 0)
{
CVarCubemapShadows->Set(0);
}
}