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. | |
|
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 .
|
overridevirtual |
Used to create any rendering thread information for this component
重载 UActorComponent .
|
overridevirtual |
Used to shut down any rendering thread structure for this component
重载 UActorComponent .
|
overridevirtual |
Called to finish destroying the object.
After UObject::FinishDestroy is called, the object's memory should no longer be accessed.
重载 UObject .
|
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.
重载 UObject .
|
overridevirtual |
Called to send a transform update for this component to the rendering thread
重载 UActorComponent .
|
overridevirtual |
Handles reading, writing, and reference collecting using FArchive.
This implementation handles all FProperty serialization, but can be overridden for native variables.
重载 UActorComponent .
| 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.
| 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.
| float UPlanarReflectionComponent::PrefilterRoughness |
The roughness value to prefilter the planar reflection texture with, useful for hiding low resolution.
Larger values have larger GPU cost.