r.SkyLightingQuality

r.SkyLightingQuality

#Overview

name: r.SkyLightingQuality

This variable is created as a Console Variable (cvar).

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:4210

Scope: file

Source code excerpt:


static TAutoConsoleVariable<int32> CVarSkyLightingQuality(
	TEXT("r.SkyLightingQuality"),
	1,
	TEXT("Defines the sky lighting quality which allows to adjust for performance.\n"
		 "<=0: off (fastest)\n"
		 "  1: on\n"),
	ECVF_Scalability | ECVF_RenderThreadSafe
);

#Loc: <Workspace>/Engine/Source/Runtime/Engine/Private/ShowFlags.cpp:463

Scope (from outer to inner):

file
function     void EngineShowFlagOverride

Source code excerpt:


	{
		static const auto ICVar = IConsoleManager::Get().FindTConsoleVariableDataInt(TEXT("r.SkyLightingQuality"));
		if (ICVar->GetValueOnGameThread() <= 0)
		{
			EngineShowFlags.SetSkyLighting(false);
		}
	}