r.GenerateMeshDistanceFields
r.GenerateMeshDistanceFields is a console variable in Unreal Engine 5 (UE5). See what r.GenerateMeshDistanceFields does, its values, and how to use this cvar in the Unreal console below.
Category: Renderer · Namespace:
rHelp
Whether to build distance fields of static meshes, needed for Lumen Software Ray Tracing and Distance Field AO, which is used to implement Movable SkyLight shadows. Enabling will increase mesh build times and memory usage. Changing this value will cause a rebuild of all static meshes.
Usage
Unreal console (open with ~)
> r.GenerateMeshDistanceFields 1Console variables take a value. Replace 1 with the setting you need. Run it with no value to print the current one.
Related in r
r.GammaVarr.GaussianBloom.CrossVarr.GBufferDiffuseSampleOcclusionVarr.GBufferFormatVarr.GeneralPurposeTweakVarr.GeneralPurposeTweak2Varr.GeometryCollection.NaniteVarr.GeometryCollectionOptimizedTransformsVarr.GeometryCollectionSetDynamicData.ISPCVarr.GeometryCollectionTripleBufferUploadsVarr.GFramesNotOcclusionTestedToExpandBBoxesVarr.GlobalDistanceFieldHeightFieldThicknessScaleVar