Data Structures

FCFOWMakerStruct

Configuration structure for fog of war rendering parameters. Inherits from FTableRowBase for DataTable usage.

Name Description
renderTargetSize Resolution of the fog render targets in pixels (default 1024)
lineOfSightIntensity Intensity of the line-of-sight area on the fog texture (default 1.0)
revealedAreaIntensity Intensity of previously revealed areas on the fog texture (default 0.025)
withblur Enable blur post-processing on the fog material (default false)
blurSize Kernel size of the blur effect (default 7.0)
blurForce Strength of the blur effect (default 15.0)
postProcessMaterialRevealArea Optional post-process material for revealed area blending. If set with a PostProcessVolume, enables scene-wide fog compositing
// FCFOWMakerStruct is configured in a DataTable row
// and referenced by ACFOWSpawner via a FDataTableRowHandle.

FCFOWMakerStruct fowStruct;
fowStruct.renderTargetSize = 1024;
fowStruct.lineOfSightIntensity = 1.0;
fowStruct.revealedAreaIntensity = 0.025;
fowStruct.withblur = false;
fowStruct.blurSize = 7.0;
fowStruct.blurForce = 15.0;
fowStruct.postProcessMaterialRevealArea = nullptr; // optional post-process material

FCFOWDataQueue

Internal queue entry used by UCFOWMaker to schedule fog updates on the game thread.

Name Description
clusterToConsider Pointer to the room cluster rectangle to render fog for
dropDMCPlan If true, clears the dynamic mesh (player is outside any cluster)
// Enqueue a cluster change:
dataQueue.Enqueue(FCFOWDataQueue(fogOfWarCluster));

// Enqueue a mesh clear (player left all clusters):
dataQueue.Enqueue(FCFOWDataQueue(true));