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

An interface to the private scene manager implementation of a scene. 更多...

#include <SceneInterface.h>

Public 成员函数

void AddAtmosphericFog (class UAtmosphericFogComponent *FogComponent)
 Adds a new atmospheric fog component to the scene 更多...
 
virtual void AddDecal (UDecalComponent *Component)=0
 Adds a new decal component to the scene 更多...
 
virtual void AddExponentialHeightFog (class UExponentialHeightFogComponent *FogComponent)=0
 Adds a new exponential height fog component to the scene 更多...
 
virtual void AddInvisibleLight (ULightComponent *Light)=0
 Adds a new light component to the scene which is currently invisible, but needed for editor previewing 更多...
 
virtual void AddLight (ULightComponent *Light)=0
 Adds a new light component to the scene 更多...
 
virtual void AddPrimitive (UPrimitiveComponent *Primitive)=0
 Adds a new primitive component to the scene 更多...
 
virtual void AddReflectionCapture (class UReflectionCaptureComponent *Component)
 Adds a reflection capture to the scene.
 
virtual void AddRuntimeVirtualTexture (class URuntimeVirtualTextureComponent *Component)
 Add a runtime virtual texture object to the scene.
 
virtual void AddSkyAtmosphere (FSkyAtmosphereSceneProxy *SkyAtmosphereSceneProxy, bool bStaticLightingBuilt)=0
 Adds the unique volumetric cloud component to the scene 更多...
 
virtual void AddSpeedTreeWind (class FVertexFactory *VertexFactory, const class UStaticMesh *StaticMesh)=0
 Adds a SpeedTree wind computation object to the scene. 更多...
 
virtual void AddVolumetricCloud (FVolumetricCloudSceneProxy *VolumetricCloudSceneProxy)=0
 Adds the unique volumetric cloud component to the scene 更多...
 
virtual void AddWindSource (class UWindDirectionalSourceComponent *WindComponent)=0
 Adds a wind source component to the scene. 更多...
 
virtual void AllocateReflectionCaptures (const TArray< UReflectionCaptureComponent * > &NewCaptures, const TCHAR *CaptureReason, bool bVerifyOnlyCapturing, bool bCapturingForMobile)
 Allocates reflection captures in the scene's reflection cubemap array and updates them by recapturing the scene. 更多...
 
virtual void ApplyWorldOffset (FVector InOffset)
 Shifts scene data by provided delta Called on world origin changes 更多...
 
virtual void Export (FArchive &Ar) const
 Exports the scene. 更多...
 
FAtmosphericFogSceneInfo * GetAtmosphericFogSceneInfo ()
 Returns the scene's FAtmosphericFogSceneInfo if it exists
 
virtual void GetDirectionalWindParameters (FVector &OutDirection, float &OutSpeed, float &OutMinGustAmt, float &OutMaxGustAmt) const =0
 Same as GetWindParameters, but ignores point wind sources.
 
virtual class FFXSystemInterface * GetFXSystem ()=0
 Get the FX system associated with the scene.
 
virtual class FGPUSkinCache * GetGPUSkinCache ()
 Gets the GPU Skin Cache system associated with the scene.
 
virtual bool GetPreviousLocalToWorld (const FPrimitiveSceneInfo *PrimitiveSceneInfo, FMatrix &OutPreviousLocalToWorld) const
 Get the primitive previous local to world (used for motion blur). 更多...
 
virtual FPrimitiveSceneInfo * GetPrimitiveSceneInfo (int32 PrimitiveIndex)=0
 Finds the primitive with the associated component id.
 
virtual void GetPrimitiveUniformShaderParameters_RenderThread (const FPrimitiveSceneInfo *PrimitiveSceneInfo, bool &bHasPrecomputedVolumetricLightmap, FMatrix &PreviousLocalToWorld, int32 &SingleCaptureIndex, bool &OutputVelocity) const
 Retrieves primitive uniform shader parameters that are internal to the renderer.
 
virtual void GetReflectionCaptureData (UReflectionCaptureComponent *Component, class FReflectionCaptureData &OutCaptureData)
 Reads back reflection capture data from the GPU. 更多...
 
virtual void GetRelevantLights (UPrimitiveComponent *Primitive, TArray< const ULightComponent * > *RelevantLights) const =0
 Retrieves the lights interacting with the passed in primitive and adds them to the out array. 更多...
 
virtual class FScene * GetRenderScene ()
 Return the scene to be used for rendering. 更多...
 
virtual ENGINE_API TArray< FPrimitiveComponentId > GetScenePrimitiveComponentIds () const
 Returns the FPrimitiveComponentId for all primitives in the scene
 
virtual FSkyAtmosphereRenderSceneInfo * GetSkyAtmosphereSceneInfo ()=0
 Returns the scene's unique info if it exists
 
virtual FRHIUniformBuffer * GetSpeedTreeUniformBuffer (const FVertexFactory *VertexFactory) const =0
 Looks up the SpeedTree uniform buffer for the passed in vertex factory. 更多...
 
virtual FVolumetricCloudRenderSceneInfo * GetVolumetricCloudSceneInfo ()=0
 Returns the scene's unique info if it exists
 
virtual void GetWindParameters (const FVector &Position, FVector &OutDirection, float &OutSpeed, float &OutMinGustAmt, float &OutMaxGustAmt) const =0
 Accesses wind parameters. 更多...
 
virtual void GetWindParameters_GameThread (const FVector &Position, FVector &OutDirection, float &OutSpeed, float &OutMinGustAmt, float &OutMaxGustAmt) const =0
 Accesses wind parameters safely for game thread applications
 
virtual const TArray< class FWindSourceSceneProxy * > & GetWindSources_RenderThread () const =0
 Accesses the wind source list. 更多...
 
virtual class UWorld * GetWorld () const =0
 Get the optional UWorld that is associated with this scene 更多...
 
virtual bool HasAnyExponentialHeightFog () const =0
 
virtual bool HasAnyLights () const =0
 
virtual void InvalidateRuntimeVirtualTexture (class URuntimeVirtualTextureComponent *Component, FBoxSphereBounds const &WorldBounds)
 Invalidates pages in a runtime virtual texture object.
 
virtual void OnLevelAddedToWorld (FName InLevelName, UWorld *InWorld, bool bIsLightingScenario)
 Notification that level was added to a world 更多...
 
virtual void Release ()=0
 Release this scene and remove it from the rendering thread
 
virtual void ReleasePrimitive (UPrimitiveComponent *Primitive)=0
 Called when a primitive is being unregistered and will not be immediately re-registered.
 
void RemoveAtmosphericFog (class UAtmosphericFogComponent *FogComponent)
 Removes a atmospheric fog component from the scene 更多...
 
void RemoveAtmosphericFogResource_RenderThread (FRenderResource *FogResource)
 Removes a atmospheric fog resource from the scene...this is just a double check to make sure we don't have stale stuff hanging around; should already be gone. 更多...
 
virtual void RemoveDecal (UDecalComponent *Component)=0
 Removes a decal component from the scene 更多...
 
virtual void RemoveExponentialHeightFog (class UExponentialHeightFogComponent *FogComponent)=0
 Removes a exponential height fog component from the scene 更多...
 
virtual void RemoveLight (ULightComponent *Light)=0
 Removes a light component from the scene 更多...
 
virtual void RemovePrimitive (UPrimitiveComponent *Primitive)=0
 Removes a primitive component from the scene 更多...
 
virtual void RemoveReflectionCapture (class UReflectionCaptureComponent *Component)
 Removes a reflection capture from the scene.
 
virtual void RemoveRuntimeVirtualTexture (class URuntimeVirtualTextureComponent *Component)
 Removes a runtime virtual texture object from the scene.
 
virtual void RemoveSkyAtmosphere (FSkyAtmosphereSceneProxy *SkyAtmosphereSceneProxy)=0
 Removes the unique volumetric cloud component to the scene 更多...
 
virtual void RemoveSpeedTreeWind_RenderThread (class FVertexFactory *VertexFactory, const class UStaticMesh *StaticMesh)=0
 Removes a SpeedTree wind computation object to the scene. 更多...
 
virtual void RemoveVolumetricCloud (FVolumetricCloudSceneProxy *VolumetricCloudSceneProxy)=0
 Removes the unique volumetric cloud component to the scene 更多...
 
virtual void RemoveWindSource (class UWindDirectionalSourceComponent *WindComponent)=0
 Removes a wind source component from the scene. 更多...
 
virtual bool RequiresHitProxies () const =0
 Indicates if hit proxies should be processed by this scene 更多...
 
virtual void SetFXSystem (class FFXSystemInterface *InFXSystem)=0
 Sets the FX system associated with the scene.
 
virtual void SetPrecomputedVisibility (const class FPrecomputedVisibilityHandler *PrecomputedVisibilityHandler)
 Sets the precomputed visibility handler for the scene, or NULL to clear the current one.
 
virtual void SetPrecomputedVolumeDistanceField (const class FPrecomputedVolumeDistanceField *PrecomputedVolumeDistanceField)
 Sets the precomputed volume distance field for the scene, or NULL to clear the current one.
 
virtual void UpdateAllPrimitiveSceneInfos (FRHICommandListImmediate &RHICmdList, bool bAsyncCreateLPIs=false)=0
 Updates all primitive scene info additions, remobals and translation changes
 
virtual void UpdateCachedRenderStates (class FPrimitiveSceneProxy *SceneProxy)
 Update render states that possibly cached inside renderer, like mesh draw commands. 更多...
 
virtual void UpdateCustomPrimitiveData (UPrimitiveComponent *Primitive)=0
 Updates the custom primitive data of a primitive component which has already been added to the scene. 更多...
 
virtual void UpdateDecalTransform (UDecalComponent *Component)=0
 Updates the transform of a decal which has already been added to the scene. 更多...
 
virtual void UpdateLightColorAndBrightness (ULightComponent *Light)=0
 Updates the color and brightness of a light which has already been added to the scene. 更多...
 
virtual void UpdateLightTransform (ULightComponent *Light)=0
 Updates the transform of a light which has already been added to the scene. 更多...
 
virtual void UpdateParameterCollections (const TArray< class FMaterialParameterCollectionInstanceResource * > &InParameterCollections)
 Updates the scene's list of parameter collection id's and their uniform buffers.
 
virtual void UpdatePrimitiveAttachment (UPrimitiveComponent *Primitive)=0
 Updates primitive attachment state.
 
virtual void UpdatePrimitiveDistanceFieldSceneData_GameThread (UPrimitiveComponent *Primitive)
 Updates distance field scene data (transforms, uv scale, self-shadow bias, etc.) but doesn't change allocation in the atlas
 
virtual void UpdatePrimitiveTransform (UPrimitiveComponent *Primitive)=0
 Updates the transform of a primitive which has already been added to the scene. 更多...
 
virtual void UpdateReflectionCaptureTransform (class UReflectionCaptureComponent *Component)
 Updates a reflection capture's transform, and then re-captures the scene.
 
virtual void UpdateSceneCaptureContents (class USceneCaptureComponent2D *CaptureComponent)
 Updates the contents of the given scene capture by rendering the scene. 更多...
 
virtual void UpdateSkyCaptureContents (const USkyLightComponent *CaptureComponent, bool bCaptureEmissiveOnly, UTextureCube *SourceCubemap, FTexture *OutProcessedTexture, float &OutAverageBrightness, FSHVectorRGB3 &OutIrradianceEnvironmentMap, TArray< FFloat16Color > *OutRadianceMap)
 Updates the contents of the given sky capture by rendering the scene. 更多...
 
virtual void UpdateSpeedTreeWind (double CurrentTime)=0
 Ticks the SpeedTree wind object and updates the uniform buffer.
 
virtual void UpdateStaticDrawLists ()
 Updates all static draw lists.
 

Protected 属性

ERHIFeatureLevel::Type FeatureLevel
 This scene's feature level
 

详细描述

An interface to the private scene manager implementation of a scene.

Use GetRendererModule().AllocateScene to create. The scene

成员函数说明

◆ AddAtmosphericFog()

void FSceneInterface::AddAtmosphericFog ( class UAtmosphericFogComponent *  FogComponent)
inline

Adds a new atmospheric fog component to the scene

参数
FogComponent- fog component to add

◆ AddDecal()

virtual void FSceneInterface::AddDecal ( UDecalComponent *  Component)
pure virtual

Adds a new decal component to the scene

参数
Component- component to add

◆ AddExponentialHeightFog()

virtual void FSceneInterface::AddExponentialHeightFog ( class UExponentialHeightFogComponent *  FogComponent)
pure virtual

Adds a new exponential height fog component to the scene

参数
FogComponent- fog component to add

◆ AddInvisibleLight()

virtual void FSceneInterface::AddInvisibleLight ( ULightComponent *  Light)
pure virtual

Adds a new light component to the scene which is currently invisible, but needed for editor previewing

参数
Light- light component to add

◆ AddLight()

virtual void FSceneInterface::AddLight ( ULightComponent *  Light)
pure virtual

Adds a new light component to the scene

参数
Light- light component to add

◆ AddPrimitive()

virtual void FSceneInterface::AddPrimitive ( UPrimitiveComponent *  Primitive)
pure virtual

Adds a new primitive component to the scene

参数
Primitive- primitive component to add

◆ AddSkyAtmosphere()

virtual void FSceneInterface::AddSkyAtmosphere ( FSkyAtmosphereSceneProxy *  SkyAtmosphereSceneProxy,
bool  bStaticLightingBuilt 
)
pure virtual

Adds the unique volumetric cloud component to the scene

参数
SkyAtmosphereSceneProxy- the sky atmosphere proxy

◆ AddSpeedTreeWind()

virtual void FSceneInterface::AddSpeedTreeWind ( class FVertexFactory *  VertexFactory,
const class UStaticMesh *  StaticMesh 
)
pure virtual

Adds a SpeedTree wind computation object to the scene.

参数
StaticMesh- The SpeedTree static mesh whose wind to add.

◆ AddVolumetricCloud()

virtual void FSceneInterface::AddVolumetricCloud ( FVolumetricCloudSceneProxy *  VolumetricCloudSceneProxy)
pure virtual

Adds the unique volumetric cloud component to the scene

参数
VolumetricCloudSceneProxy- the sky atmosphere proxy

◆ AddWindSource()

virtual void FSceneInterface::AddWindSource ( class UWindDirectionalSourceComponent *  WindComponent)
pure virtual

Adds a wind source component to the scene.

参数
WindComponent- The component to add.

◆ AllocateReflectionCaptures()

virtual void FSceneInterface::AllocateReflectionCaptures ( const TArray< UReflectionCaptureComponent * > &  NewCaptures,
const TCHAR *  CaptureReason,
bool  bVerifyOnlyCapturing,
bool  bCapturingForMobile 
)
inlinevirtual

Allocates reflection captures in the scene's reflection cubemap array and updates them by recapturing the scene.

Existing captures will only be updated. Must be called from the game thread.

◆ ApplyWorldOffset()

virtual void FSceneInterface::ApplyWorldOffset ( FVector  InOffset)
inlinevirtual

Shifts scene data by provided delta Called on world origin changes

参数
InOffsetDelta to shift scene by

◆ Export()

virtual void FSceneInterface::Export ( FArchive &  Ar) const
inlinevirtual

Exports the scene.

参数
ArThe Archive used for exporting.

◆ GetPreviousLocalToWorld()

virtual bool FSceneInterface::GetPreviousLocalToWorld ( const FPrimitiveSceneInfo *  PrimitiveSceneInfo,
FMatrix &  OutPreviousLocalToWorld 
) const
inlinevirtual

Get the primitive previous local to world (used for motion blur).

Returns true if the matrix was set.

◆ GetReflectionCaptureData()

virtual void FSceneInterface::GetReflectionCaptureData ( UReflectionCaptureComponent *  Component,
class FReflectionCaptureData &  OutCaptureData 
)
inlinevirtual

Reads back reflection capture data from the GPU.

Very slow operation that blocks the GPU and rendering thread many times.

◆ GetRelevantLights()

virtual void FSceneInterface::GetRelevantLights ( UPrimitiveComponent *  Primitive,
TArray< const ULightComponent * > *  RelevantLights 
) const
pure virtual

Retrieves the lights interacting with the passed in primitive and adds them to the out array.

参数
PrimitivePrimitive to retrieve interacting lights for
RelevantLights[out] Array of lights interacting with primitive

◆ GetRenderScene()

virtual class FScene * FSceneInterface::GetRenderScene ( )
inlinevirtual

Return the scene to be used for rendering.

Note that this can return NULL if rendering has been disabled!

◆ GetSpeedTreeUniformBuffer()

virtual FRHIUniformBuffer * FSceneInterface::GetSpeedTreeUniformBuffer ( const FVertexFactory *  VertexFactory) const
pure virtual

Looks up the SpeedTree uniform buffer for the passed in vertex factory.

参数
VertexFactory- The vertex factory registered for SpeedTree.

◆ GetWindParameters()

virtual void FSceneInterface::GetWindParameters ( const FVector &  Position,
FVector &  OutDirection,
float &  OutSpeed,
float &  OutMinGustAmt,
float &  OutMaxGustAmt 
) const
pure virtual

Accesses wind parameters.

XYZ will contain wind direction * Strength, W contains wind speed.

◆ GetWindSources_RenderThread()

virtual const TArray< class FWindSourceSceneProxy * > & FSceneInterface::GetWindSources_RenderThread ( ) const
pure virtual

Accesses the wind source list.

Must be called in the rendering thread.

返回
The list of wind sources in the scene.

◆ GetWorld()

virtual class UWorld * FSceneInterface::GetWorld ( ) const
pure virtual

Get the optional UWorld that is associated with this scene

返回
UWorld instance used by this scene

◆ HasAnyExponentialHeightFog()

virtual bool FSceneInterface::HasAnyExponentialHeightFog ( ) const
pure virtual
返回
True if there are any exponential height fog potentially enabled in the scene

◆ HasAnyLights()

virtual bool FSceneInterface::HasAnyLights ( ) const
pure virtual
返回
True if there are any lights in the scene

◆ OnLevelAddedToWorld()

virtual void FSceneInterface::OnLevelAddedToWorld ( FName  InLevelName,
UWorld *  InWorld,
bool  bIsLightingScenario 
)
inlinevirtual

Notification that level was added to a world

参数
InLevelNameLevel name

◆ RemoveAtmosphericFog()

void FSceneInterface::RemoveAtmosphericFog ( class UAtmosphericFogComponent *  FogComponent)
inline

Removes a atmospheric fog component from the scene

参数
FogComponent- fog component to remove

◆ RemoveAtmosphericFogResource_RenderThread()

void FSceneInterface::RemoveAtmosphericFogResource_RenderThread ( FRenderResource *  FogResource)
inline

Removes a atmospheric fog resource from the scene...this is just a double check to make sure we don't have stale stuff hanging around; should already be gone.

参数
FogResource- fog resource to remove

◆ RemoveDecal()

virtual void FSceneInterface::RemoveDecal ( UDecalComponent *  Component)
pure virtual

Removes a decal component from the scene

参数
Component- component to remove

◆ RemoveExponentialHeightFog()

virtual void FSceneInterface::RemoveExponentialHeightFog ( class UExponentialHeightFogComponent *  FogComponent)
pure virtual

Removes a exponential height fog component from the scene

参数
FogComponent- fog component to remove

◆ RemoveLight()

virtual void FSceneInterface::RemoveLight ( ULightComponent *  Light)
pure virtual

Removes a light component from the scene

参数
Light- light component to remove

◆ RemovePrimitive()

virtual void FSceneInterface::RemovePrimitive ( UPrimitiveComponent *  Primitive)
pure virtual

Removes a primitive component from the scene

参数
Primitive- primitive component to remove

◆ RemoveSkyAtmosphere()

virtual void FSceneInterface::RemoveSkyAtmosphere ( FSkyAtmosphereSceneProxy *  SkyAtmosphereSceneProxy)
pure virtual

Removes the unique volumetric cloud component to the scene

参数
SkyAtmosphereSceneProxy- the sky atmosphere proxy

◆ RemoveSpeedTreeWind_RenderThread()

virtual void FSceneInterface::RemoveSpeedTreeWind_RenderThread ( class FVertexFactory *  VertexFactory,
const class UStaticMesh *  StaticMesh 
)
pure virtual

Removes a SpeedTree wind computation object to the scene.

参数
StaticMesh- The SpeedTree static mesh whose wind to remove.

◆ RemoveVolumetricCloud()

virtual void FSceneInterface::RemoveVolumetricCloud ( FVolumetricCloudSceneProxy *  VolumetricCloudSceneProxy)
pure virtual

Removes the unique volumetric cloud component to the scene

参数
VolumetricCloudSceneProxy- the sky atmosphere proxy

◆ RemoveWindSource()

virtual void FSceneInterface::RemoveWindSource ( class UWindDirectionalSourceComponent *  WindComponent)
pure virtual

Removes a wind source component from the scene.

参数
WindComponent- The component to remove.

◆ RequiresHitProxies()

virtual bool FSceneInterface::RequiresHitProxies ( ) const
pure virtual

Indicates if hit proxies should be processed by this scene

返回
true if hit proxies should be rendered in this scene.

◆ UpdateCachedRenderStates()

virtual void FSceneInterface::UpdateCachedRenderStates ( class FPrimitiveSceneProxy *  SceneProxy)
inlinevirtual

Update render states that possibly cached inside renderer, like mesh draw commands.

More lightweight than re-registering the scene proxy.

◆ UpdateCustomPrimitiveData()

virtual void FSceneInterface::UpdateCustomPrimitiveData ( UPrimitiveComponent *  Primitive)
pure virtual

Updates the custom primitive data of a primitive component which has already been added to the scene.

参数
Primitive- Primitive component to update

◆ UpdateDecalTransform()

virtual void FSceneInterface::UpdateDecalTransform ( UDecalComponent *  Component)
pure virtual

Updates the transform of a decal which has already been added to the scene.

参数
Decal- Decal component to update

◆ UpdateLightColorAndBrightness()

virtual void FSceneInterface::UpdateLightColorAndBrightness ( ULightComponent *  Light)
pure virtual

Updates the color and brightness of a light which has already been added to the scene.

参数
Light- light component to update

◆ UpdateLightTransform()

virtual void FSceneInterface::UpdateLightTransform ( ULightComponent *  Light)
pure virtual

Updates the transform of a light which has already been added to the scene.

参数
Light- light component to update

◆ UpdatePrimitiveTransform()

virtual void FSceneInterface::UpdatePrimitiveTransform ( UPrimitiveComponent *  Primitive)
pure virtual

Updates the transform of a primitive which has already been added to the scene.

参数
Primitive- primitive component to update

◆ UpdateSceneCaptureContents()

virtual void FSceneInterface::UpdateSceneCaptureContents ( class USceneCaptureComponent2D *  CaptureComponent)
inlinevirtual

Updates the contents of the given scene capture by rendering the scene.

This must be called on the game thread.

◆ UpdateSkyCaptureContents()

virtual void FSceneInterface::UpdateSkyCaptureContents ( const USkyLightComponent *  CaptureComponent,
bool  bCaptureEmissiveOnly,
UTextureCube *  SourceCubemap,
FTexture *  OutProcessedTexture,
float &  OutAverageBrightness,
FSHVectorRGB3 &  OutIrradianceEnvironmentMap,
TArray< FFloat16Color > *  OutRadianceMap 
)
inlinevirtual

Updates the contents of the given sky capture by rendering the scene.

This must be called on the game thread.


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