engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Public 属性 | 所有成员列表
UPlanarReflectionComponent类 参考

UPlanarReflectionComponent 更多...

#include <PlanarReflectionComponent.h>

继承自 USceneCaptureComponent .

Public 成员函数

virtual void BeginDestroy () override
 Called before destroying the object. 更多...
 
virtual void CreateRenderState_Concurrent (FRegisterComponentContext *Context) override
 Used to create any rendering thread information for this component 更多...
 
virtual void DestroyRenderState_Concurrent () override
 Used to shut down any rendering thread structure for this component 更多...
 
virtual void FinishDestroy () override
 Called to finish destroying the object. 更多...
 
virtual bool IsReadyForFinishDestroy () override
 Called to check if the object is ready for FinishDestroy. 更多...
 
virtual void OnRegister () override
 Called when a component is registered, after Scene is set, but before CreateRenderState_Concurrent or OnCreatePhysicsState are called.
 
virtual void SendRenderTransform_Concurrent () override
 Called to send a transform update for this component to the rendering thread 更多...
 
virtual void Serialize (FArchive &Ar) override
 Handles reading, writing, and reference collecting using FArchive. 更多...
 

Public 属性

float AngleFromPlaneFadeEnd
 Receiving pixels whose normal is at this angle from the reflection plane will have completely faded out the planar reflection.
 
float AngleFromPlaneFadeStart
 Receiving pixels whose normal is at this angle from the reflection plane will begin to fade out the planar reflection.
 
bool bRenderSceneTwoSided
 Whether to render the scene as two-sided, which can be useful to hide artifacts where normal distortion would read 'under' an object that has been clipped by the reflection plane. 更多...
 
float DistanceFromPlaneFadeoutEnd
 Receiving pixels at this distance from the reflection plane will have completely faded out the planar reflection.
 
float DistanceFromPlaneFadeoutStart
 Receiving pixels at this distance from the reflection plane will begin to fade out the planar reflection.
 
float ExtraFOV
 Additional FOV used when rendering to the reflection texture. 更多...
 
float NormalDistortionStrength
 Controls the strength of normals when distorting the planar reflection.
 
float PrefilterRoughness
 The roughness value to prefilter the planar reflection texture with, useful for hiding low resolution. 更多...
 
float PrefilterRoughnessDistance
 The distance at which the prefilter roughness value will be achieved.
 
int32 ScreenPercentage
 Downsample percent, can be used to reduce GPU time rendering the planar reflection.
 

详细描述

UPlanarReflectionComponent

成员函数说明

◆ BeginDestroy()

virtual void UPlanarReflectionComponent::BeginDestroy ( )
overridevirtual

Called before destroying the object.

This is called immediately upon deciding to destroy the object, to allow the object to begin an asynchronous cleanup process.

重载 USceneComponent .

◆ CreateRenderState_Concurrent()

virtual void UPlanarReflectionComponent::CreateRenderState_Concurrent ( FRegisterComponentContext *  Context)
overridevirtual

Used to create any rendering thread information for this component

警告
This is called concurrently on multiple threads (but never the same component concurrently)

重载 UActorComponent .

◆ DestroyRenderState_Concurrent()

virtual void UPlanarReflectionComponent::DestroyRenderState_Concurrent ( )
overridevirtual

Used to shut down any rendering thread structure for this component

警告
This is called concurrently on multiple threads (but never the same component concurrently)

重载 UActorComponent .

◆ FinishDestroy()

virtual void UPlanarReflectionComponent::FinishDestroy ( )
overridevirtual

Called to finish destroying the object.

After UObject::FinishDestroy is called, the object's memory should no longer be accessed.

警告
Because properties are destroyed here, Super::FinishDestroy() should always be called at the end of your child class's FinishDestroy() method, rather than at the beginning.

重载 UObject .

◆ IsReadyForFinishDestroy()

virtual bool UPlanarReflectionComponent::IsReadyForFinishDestroy ( )
overridevirtual

Called to check if the object is ready for FinishDestroy.

This is called after BeginDestroy to check the completion of the potentially asynchronous object cleanup.

返回
True if the object's asynchronous cleanup has completed and it is ready for FinishDestroy to be called.

重载 UObject .

◆ SendRenderTransform_Concurrent()

virtual void UPlanarReflectionComponent::SendRenderTransform_Concurrent ( )
overridevirtual

Called to send a transform update for this component to the rendering thread

警告
This is called concurrently on multiple threads (but never the same component concurrently)

重载 UActorComponent .

◆ Serialize()

virtual void UPlanarReflectionComponent::Serialize ( FArchive &  Ar)
overridevirtual

Handles reading, writing, and reference collecting using FArchive.

This implementation handles all FProperty serialization, but can be overridden for native variables.

重载 UActorComponent .

类成员变量说明

◆ bRenderSceneTwoSided

bool UPlanarReflectionComponent::bRenderSceneTwoSided

Whether to render the scene as two-sided, which can be useful to hide artifacts where normal distortion would read 'under' an object that has been clipped by the reflection plane.

With this setting enabled, the backfaces of a mesh would be displayed in the clipped region instead of the background which is potentially a bright sky. Be sure to add the water plane to HiddenActors if enabling this, as the water plane will now block the reflection.

◆ ExtraFOV

float UPlanarReflectionComponent::ExtraFOV

Additional FOV used when rendering to the reflection texture.


This is useful when normal distortion is causing reads outside the reflection texture. Larger values increase rendering thread and GPU cost, as more objects and triangles have to be rendered into the planar reflection.

◆ PrefilterRoughness

float UPlanarReflectionComponent::PrefilterRoughness

The roughness value to prefilter the planar reflection texture with, useful for hiding low resolution.

Larger values have larger GPU cost.


该类的文档由以下文件生成: