![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include "PhysicsFieldRendering.h"#include "PhysicsField/PhysicsFieldComponent.h"#include "RHIStaticStates.h"#include "DataDrivenShaderPlatformInfo.h"#include "Shader.h"#include "GlobalShader.h"#include "ShaderParameters.h"#include "ShaderParameterStruct.h"#include "ShaderParameterUtils.h"#include "ShaderCompilerCore.h"#include "RenderGraphUtils.h"#include "CanvasTypes.h"#include "SceneTextureParameters.h"#include "DynamicPrimitiveDrawing.h"#include "ShaderPrint.h"Classes | |
| class | FPhysicsFieldRayMarchingCS |
Functions | |
| IMPLEMENT_GLOBAL_SHADER (FPhysicsFieldRayMarchingCS, "/Engine/Private/PhysicsFieldVisualizer.usf", "MainCS", SF_Compute) | |
| void | RenderPhysicsField (FRDGBuilder &GraphBuilder, TArrayView< FViewInfo > Views, const FPhysicsFieldSceneProxy *PhysicsFieldProxy, FRDGTextureRef SceneColorTexture) |
| IMPLEMENT_GLOBAL_SHADER | ( | FPhysicsFieldRayMarchingCS | , |
| "/Engine/Private/PhysicsFieldVisualizer.usf" | , | ||
| "MainCS" | , | ||
| SF_Compute | |||
| ) |
| void RenderPhysicsField | ( | FRDGBuilder & | GraphBuilder, |
| TArrayView< FViewInfo > | Views, | ||
| const FPhysicsFieldSceneProxy * | PhysicsFieldProxy, | ||
| FRDGTextureRef | SceneColorTexture | ||
| ) |
| FAutoConsoleVariableRef CVarPhysicsFieldEvalType(TEXT("r.PhysicsField.Rendering.EvalType"), GPhysicsFieldEvalType, TEXT("Physics field boolean to check if we are evaluating exactly(0) or sampling(1) the field for visualisation.\n"), ECVF_RenderThreadSafe) | ( | TEXT("r.PhysicsField.Rendering.EvalType") | , |
| GPhysicsFieldEvalType | , | ||
| TEXT("Physics field boolean to check if we are evaluating exactly(0) or sampling(1) the field for visualisation.\n") | , | ||
| ECVF_RenderThreadSafe | |||
| ) |
| FAutoConsoleVariableRef CVarPhysicsFieldSystemType(TEXT("r.PhysicsField.Rendering.SystemType"), GPhysicsFieldSystemType, TEXT("Physics field boolean to check if we want to display the CPU(0) or GPU(1) field.\n"), ECVF_RenderThreadSafe) | ( | TEXT("r.PhysicsField.Rendering.SystemType") | , |
| GPhysicsFieldSystemType | , | ||
| TEXT("Physics field boolean to check if we want to display the CPU(0) or GPU(1) field.\n") | , | ||
| ECVF_RenderThreadSafe | |||
| ) |
| FAutoConsoleVariableRef CVarPhysicsFieldTargetType(TEXT("r.PhysicsField.Rendering.TargetType"), GPhysicsFieldTargetType, TEXT("Physics field target to be used in the viewport show options.\n"), ECVF_RenderThreadSafe) | ( | TEXT("r.PhysicsField.Rendering.TargetType") | , |
| GPhysicsFieldTargetType | , | ||
| TEXT("Physics field target to be used in the viewport show options.\n") | , | ||
| ECVF_RenderThreadSafe | |||
| ) |
| FAutoConsoleVariableRef CVarPhysicsFieldTransientLifetime(TEXT("r.PhysicsField.Rendering.TransientLifetime"), GPhysicsFieldTransientLifetime, TEXT("Physics field transient commands lifetime for rendering.\n"), ECVF_RenderThreadSafe) | ( | TEXT("r.PhysicsField.Rendering.TransientLifetime") | , |
| GPhysicsFieldTransientLifetime | , | ||
| TEXT("Physics field transient commands lifetime for rendering.\n") | , | ||
| ECVF_RenderThreadSafe | |||
| ) |
| int32 GPhysicsFieldEvalType = 0 |
| int32 GPhysicsFieldSystemType = 0 |
| int32 GPhysicsFieldTargetType = EFieldPhysicsType::Field_PhysicsType_Max |
| float GPhysicsFieldTransientLifetime = 3.0f |