Navigation
API > API/Runtime > API/Runtime/Landscape
Inheritance Hierarchy
- FPrimitiveSceneProxy
- FLandscapeSectionInfo
- FLandscapeComponentSceneProxy
References
| Module | Landscape |
| Header | /Engine/Source/Runtime/Landscape/Public/LandscapeRender.h |
| Include | #include "LandscapeRender.h" |
Syntax
class FLandscapeComponentSceneProxy :
public FPrimitiveSceneProxy,
public FLandscapeSectionInfo
Remarks
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< FMaterialRenderProxy * > | AvailableMaterials | All available materials, including LOD Material, Tessellation generated materials | |
| bool | bNaniteActive | ||
| bool | bUsesLandscapeCulling | ||
| int32 | CollisionMipLevel | Data used in editor or visualisers | |
| FCollisionResponseContainer | CollisionResponse | ||
| TUniquePtr< FLandscapeLCI > | ComponentLightInfo | ||
| float | ComponentMaxExtend | ||
| int32 | ComponentSizeQuads | Size of the component in unique heights. | |
| int32 | ComponentSizeVerts | ComponentSizeQuads + 1. | |
| float | ComponentSquaredScreenSizeToUseSubSections | ||
| FLandscapeEditToolRenderData | EditToolRenderData | ||
| int32 | FirstLOD | ||
| int32 | FirstVirtualTextureLOD | ||
| FLandscapeVertexFactory * | FixedGridVertexFactory | ||
| friend | FLandscapeRenderSystem | ||
| TArray< FLandscapeBatchElementParams > | GrassBatchParams | ||
| FMeshBatch | GrassMeshBatch | Precomputed grass rendering MeshBatch and per-LOD params. | |
| FVector4f | HeightmapScaleBias | ||
| float | HeightmapSubsectionOffsetU | ||
| float | HeightmapSubsectionOffsetV | ||
| UTexture2D * | HeightmapTexture | Heightmap in RG and Normalmap in BA. | |
| const ULandscapeComponent * | LandscapeComponent | ||
| TArray< TUniformBuffer< FLandscapeFixedGridUniformShaderParameters > > | LandscapeFixedGridUniformShaderParameters | ||
| TUniformBuffer< FLandscapeUniformShaderParameters > | LandscapeUniformShaderParameters | ||
| int32 | LastLOD | ||
| int32 | LastVirtualTextureLOD | ||
| TArray< FLinearColor > | LayerColors | ||
| int32 | LightMapResolution | LightMap resolution used for VMI_LightmapDensity | |
| FMatrix | LocalToWorldNoScaling | ||
| TArray< int8 > | LODIndexToMaterialIndex | Mapping between LOD and Material Index | |
| TArray< float > | LODScreenRatioSquared | ||
| FLandscapeRenderSystem::LODSettingsComponent | LODSettings | ||
| TArray< int8 > | MaterialIndexToStaticMeshBatchLOD | Mapping between Material Index to Static Mesh Batch | |
| TArray< FMaterialRelevance > | MaterialRelevances | Material Relevance for each material in AvailableMaterials | |
| int8 | MaxLOD | ||
| int32 | NumSubsections | Number of subsections within the component in each dimension, this can be 1 or 2. | |
| int8 | NumWeightmapLayerAllocations | ||
| FIntPoint | SectionBase | Address of the component within the parent Landscape in unique height texels. | |
| FLandscapeSharedBuffers * | SharedBuffers | ||
| uint32 | SharedBuffersKey | ||
| int32 | SimpleCollisionMipLevel | ||
| TArray< FLandscapeBatchElementParams > | StaticBatchParamArray | Storage for static draw list batch params. | |
| uint8 | StaticLightingLOD | ||
| float | StaticLightingResolution | ||
| TArray< FVector > | SubSectionScreenSizeTestingPosition | ||
| int32 | SubsectionSizeQuads | Number of unique heights in the subsection. | |
| int32 | SubsectionSizeVerts | Number of heightmap heights in the subsection. This includes the duplicate row at the end. | |
| FLandscapeVertexFactory * | VertexFactory | ||
| uint8 | VirtualTexturePerPixelHeight | ||
| FLandscapeVisibilityHelper | VisibilityHelper | ||
| int32 | VisibilityWeightmapChannel | ||
| UTexture2D * | VisibilityWeightmapTexture | ||
| FVector4f | WeightmapScaleBias | ||
| float | WeightmapSubsectionOffset | ||
| TArray< UTexture2D * > | WeightmapTextures | ||
| FMatrix | WorldToLocal | Cached versions of these. | |
| UTexture2D * | XYOffsetmapTexture |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FLandscapeComponentSceneProxy
(
ULandscapeComponent* InComponent |
Constructor |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | ChangeComponentScreenSizeToUseSubSections_RenderThread
(
float InComponentScreenSizeToUseSubSections |
FLandcapeSceneProxy. | |
| const FMeshBatch & | |||
| int8 | GetLODFromScreenSize
(
float InScreenSizeSquared, |
||
| bool | GetMeshElementForVirtualTexture
(
int32 InLodIndex, |
Creates a mesh batch for virtual texture rendering. | |
| bool | GetStaticMeshElement
(
int32 LODIndex, |
Overridden from FPrimitiveSceneProxy
| Type | Name | Description | |
|---|---|---|---|
| void | ApplyViewDependentMeshArguments
(
const FSceneView& View, |
Gives the primitive an opportunity to override MeshBatch arguments for a specific View Only called for a MeshBatch with a bViewDependentArguments property set | |
| void | ApplyWorldOffset
(
FVector InOffset |
Shifts primitive position and all relevant data by an arbitrary delta. | |
| bool | |||
| void | Called when the rendering thread adds the proxy to the scene. | ||
| void | Called when the rendering thread removes the proxy from the scene. | ||
| void | Draws the primitive's static elements. | ||
| void | GetDynamicMeshElements
(
const TArray< const FSceneView* >& Views, |
Gathers the primitive's dynamic mesh elements. | |
| void | GetHeightfieldRepresentation
(
UTexture2D*& OutHeightmapTexture, |
||
| void | |||
| int32 | Get the lightmap resolution for this primitive. Used in VMI_LightmapDensity. | ||
| void | GetLightRelevance
(
const FLightSceneProxy* LightSceneProxy, |
Determines the relevance of this primitive's elements to the given light. | |
| uint32 | Every derived class should override these functions | ||
| FPrimitiveViewRelevance | GetViewRelevance
(
const FSceneView* View |
Determines the relevance of this primitive's elements to the given view. | |
| bool | |||
| bool | Called to notify the proxy that the level has been fully added to the world and the primitive will now be rendered. | ||
| void | Called to notify the proxy that the level has been fully removed from the world and the primitive will not be rendered. | ||
| void | Called to notify the proxy when its transform has been updated. |
Overridden from FLandscapeSectionInfo
| Type | Name | Description | |
|---|---|---|---|
| float | |||
| float | ComputeLODForView
(
const FSceneView& InView |
||
| double | Computes the worldspace units per vertex of the landscape section. | ||
| int32 | Return the resolution of a component, in vertices (-1 for any sections that are not grid based, i.e. mesh sections) | ||
| void | GetSectionBoundsAndLocalToWorld
(
FBoxSphereBounds& LocalBounds, |
||
| void | Used to notify derived classes when render coords are calculated |
Constants
| Name | Description |
|---|---|
| MAX_SUBSECTION_COUNT | |
| SharedBuffersMap | Reference counted vertex and index buffer shared among all landscape scene proxies of the same component size Key is the component size and number of subsections. |
Deprecated Variables
| Type | Name | Description | |
|---|---|---|---|
| ELandscapeLODFalloff::Type | LODFalloff_DEPRECATED |