35#define LANDSCAPE_LOD_LEVELS 8
36#define LANDSCAPE_MAX_SUBSECTION_NUM 2
91UE_DEPRECATED(5.6,
"This global has been deprecated. Please use ULandscapeEditResourcesSubsystem->GetLayerDebugColorMaterial")
328 int32 SubsectionSizeVerts;
329 int32 NumSubsections;
400 UE_DEPRECATED(5.6,
"This constructor has been deprecated. Please use constructor which also provides the number of raytracing sections.")
459 bool bResourcesCreated =
false;
460 bool bRegistered =
false;
585 void FetchHeightmapLODBiases();
625 virtual void PreInitViews_RenderThread(
FRDGBuilder& GraphBuilder)
override;
633 void EndFrame_GameThread();
634 void EndFrame_RenderThread();
638 struct FLandscapeViewData
640 FLandscapeViewData() =
default;
652 int32 NumViewsWithShowCollision = 0;
653 int32 NumViewsWithShowCollisionAcc = 0;
682 SIZE_T GetTypeHash()
const override;
684 FLandscapeMeshProxySceneProxy(UStaticMeshComponent*
InComponent,
const FGuid&
InLandscapeGuid,
const TArray<FIntPoint>&
InProxySectionsBases,
const TArray<FVector>&
InProxySectionsCentersLocalSpace,
const FVector&
InComponentXVector,
const FVector&
InComponentYVector,
const FTransform& LocalToWorld,
int32 ComponentResolution,
int8 InProxyLOD,
uint32 InLODGroupKey,
uint32 LandscapeKey);
686 virtual void DestroyRenderThreadResources()
override;
689 virtual void OnForceHiddenChanged()
override;
692 void RegisterSections();
693 void UnregisterSections();
715 SetGlobalVolumeLightmap(
true);
722 SetLightMap(MapBuildData->
LightMap);
730 bCanUsePrecomputedLightingParametersFromGPUScene =
true;
744 static const int8 MAX_SUBSECTION_COUNT = 2*2;
864#if WITH_EDITORONLY_DATA
869#if WITH_EDITOR || !(UE_BUILD_SHIPPING || UE_BUILD_TEST)
876#if !(UE_BUILD_SHIPPING || UE_BUILD_TEST)
886#if !UE_BUILD_SHIPPING
912 LANDSCAPE_API virtual void DestroyRenderThreadResources()
override;
914 friend class ULandscapeComponent;
916 friend class FLandscapeXYOffsetVertexFactoryVertexShaderParameters;
923 LANDSCAPE_API virtual bool HeightfieldHasPendingStreaming()
const override;
927 LANDSCAPE_API virtual void GetLCIs(FLCIArray& LCIs)
override;
929#if !(UE_BUILD_SHIPPING || UE_BUILD_TEST)
944 LANDSCAPE_API virtual double ComputeSectionResolution()
const override;
996 if (ParameterInfo.Name ==
FName(
TEXT(
"Landscape_RedMask")))
1001 else if (ParameterInfo.Name ==
FName(
TEXT(
"Landscape_GreenMask")))
1006 else if (ParameterInfo.Name ==
FName(
TEXT(
"Landscape_BlueMask")))
1013 if (ParameterInfo.Name ==
FName(
TEXT(
"Landscape_RedTexture")))
1018 else if (ParameterInfo.Name ==
FName(
TEXT(
"Landscape_GreenTexture")))
1023 else if (ParameterInfo.Name ==
FName(
TEXT(
"Landscape_BlueTexture")))
1064 if (ParameterInfo.Name ==
FName(
TEXT(
"HighlightColor")))
1071 if (ParameterInfo.Name ==
FName(
TEXT(
"SelectedData")))
1114 if (ParameterInfo.Name ==
FName(
TEXT(
"bInverted")))
1121 if (ParameterInfo.Name ==
FName(
TEXT(
"SelectedData")))
1138 int32 ComponentSizeVerts;
1195 if (ParameterInfo.Name ==
FName(
TEXT(
"Rotation")))
1200 else if (ParameterInfo.Name ==
FName(
TEXT(
"NumStripes")))
1205 else if (ParameterInfo.Name ==
FName(
TEXT(
"ComponentSizeVerts")))
#define check(expr)
Definition AssertionMacros.h:314
@ INDEX_NONE
Definition CoreMiscDefines.h:150
@ ForceInit
Definition CoreMiscDefines.h:155
#define UE_DEPRECATED(Version, Message)
Definition CoreMiscDefines.h:302
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
LANDSCAPE_API FLandscapeDebugOptions GLandscapeDebugOptions
Definition LandscapeRender.cpp:404
#define LANDSCAPE_MAX_SUBSECTION_NUM
Definition LandscapeRender.h:36
EMaterialParameterType
Definition MaterialParameters.h:187
FInt32Point FIntPoint
Definition MathFwd.h:124
#define DECLARE_TYPE_LAYOUT(T, Interface)
Definition MemoryLayout.h:557
#define SHADER_PARAMETER_TEXTURE(ShaderType, MemberName)
Definition ShaderParameterMacros.h:1708
#define END_GLOBAL_SHADER_PARAMETER_STRUCT
Definition ShaderParameterMacros.h:1669
#define SHADER_PARAMETER_SRV(ShaderType, MemberName)
Definition ShaderParameterMacros.h:1720
#define SHADER_PARAMETER_SAMPLER(ShaderType, MemberName)
Definition ShaderParameterMacros.h:1740
#define BEGIN_GLOBAL_SHADER_PARAMETER_STRUCT
Definition ShaderParameterMacros.h:1663
#define SHADER_PARAMETER(MemberType, MemberName)
Definition ShaderParameterMacros.h:1684
USkinnedMeshComponent float
Definition SkinnedMeshComponent.h:60
#define UE_ARRAY_COUNT(array)
Definition UnrealTemplate.h:212
EVertexInputStreamType
Definition VertexFactory.h:128
#define DECLARE_VERTEX_FACTORY_TYPE_API(FactoryClass, ModuleApi)
Definition VertexFactory.h:553
uint32 Size
Definition VulkanMemory.cpp:4034
Definition IConsoleManager.h:2026
Definition SceneViewExtension.h:266
Definition PrimitiveSceneProxy.h:211
Definition RenderResource.h:509
Definition LandscapeRender.h:702
FIntPoint SectionBase
Definition LandscapeRender.h:800
TUniformBuffer< FLandscapeUniformShaderParameters > LandscapeUniformShaderParameters
Definition LandscapeRender.h:881
TArray< int8 > MaterialIndexToStaticMeshBatchLOD
Definition LandscapeRender.h:845
TArray< int8 > LODIndexToMaterialIndex
Definition LandscapeRender.h:842
uint32 SharedBuffersKey
Definition LandscapeRender.h:830
int32 SubsectionSizeVerts
Definition LandscapeRender.h:787
int32 SubsectionSizeQuads
Definition LandscapeRender.h:785
TUniquePtr< FLandscapeLCI > ComponentLightInfo
Definition LandscapeRender.h:839
TArray< float > LODScreenRatioSquared
Definition LandscapeRender.h:765
float VirtualShadowMapConstantDepthBias
Definition LandscapeRender.h:859
float ComponentMaxExtend
Definition LandscapeRender.h:773
float HeightmapSubsectionOffsetV
Definition LandscapeRender.h:828
int32 LastVirtualTextureLOD
Definition LandscapeRender.h:771
int32 VisibilityWeightmapChannel
Definition LandscapeRender.h:818
FMatrix WorldToLocal
Definition LandscapeRender.h:884
friend FLandscapeRenderSystem
Definition LandscapeRender.h:750
FVector4f WeightmapScaleBias
Definition LandscapeRender.h:814
FLandscapeVertexFactory * VertexFactory
Definition LandscapeRender.h:832
FCollisionResponseContainer CollisionResponse
Definition LandscapeRender.h:873
int32 SimpleCollisionMipLevel
Definition LandscapeRender.h:871
TArray< FLandscapeBatchElementParams > StaticBatchParamArray
Definition LandscapeRender.h:805
bool bNaniteActive
Definition LandscapeRender.h:807
TArray< UTexture2D * > WeightmapTextures
Definition LandscapeRender.h:815
FName DebugName
Definition LandscapeRender.h:887
float WeightmapSubsectionOffset
Definition LandscapeRender.h:763
int32 ComponentSizeQuads
Definition LandscapeRender.h:789
int32 FirstLOD
Definition LandscapeRender.h:767
int32 NumRayTracingSections
Definition LandscapeRender.h:796
int32 NumSubsections
Definition LandscapeRender.h:783
FMatrix LocalToWorldNoScaling
Definition LandscapeRender.h:802
float StaticLightingResolution
Definition LandscapeRender.h:798
int32 CollisionMipLevel
Definition LandscapeRender.h:870
int32 ComponentSizeVerts
Definition LandscapeRender.h:794
float VirtualShadowMapInvalidationHeightErrorThreshold
Definition LandscapeRender.h:862
uint8 VirtualTexturePerPixelHeight
Definition LandscapeRender.h:762
static LANDSCAPE_API TMap< uint32, FLandscapeSharedBuffers * > SharedBuffersMap
Definition LandscapeRender.h:755
const FMeshBatch & GetGrassMeshBatch() const
Definition LandscapeRender.h:920
FLandscapeRenderSystem::LODSettingsComponent LODSettings
Definition LandscapeRender.h:777
int8 MaxLOD
Definition LandscapeRender.h:759
float HeightmapSubsectionOffsetU
Definition LandscapeRender.h:827
int32 FirstVirtualTextureLOD
Definition LandscapeRender.h:770
int8 NumWeightmapLayerAllocations
Definition LandscapeRender.h:760
bool bUsesLandscapeCulling
Definition LandscapeRender.h:808
int32 LightMapResolution
Definition LandscapeRender.h:878
TArray< double > WorldSpaceMipToMipMaxDeltas
Definition LandscapeRender.h:856
FMeshBatch GrassMeshBatch
Definition LandscapeRender.h:811
float InvLODBlendRange
Definition LandscapeRender.h:775
int32 LastLOD
Definition LandscapeRender.h:769
virtual int32 GetLightMapResolution() const override
Definition LandscapeRender.h:930
virtual uint32 GetMemoryFootprint() const override
Definition LandscapeRender.h:906
UTexture2D * VisibilityWeightmapTexture
Definition LandscapeRender.h:817
FLandscapeVertexFactory * FixedGridVertexFactory
Definition LandscapeRender.h:833
TArray< FMaterialRenderProxy * > AvailableMaterials
Definition LandscapeRender.h:836
uint8 StaticLightingLOD
Definition LandscapeRender.h:761
UTexture2D * HeightmapTexture
Definition LandscapeRender.h:825
FLandscapeSharedBuffers * SharedBuffers
Definition LandscapeRender.h:831
TArray< FLandscapeBatchElementParams > GrassBatchParams
Definition LandscapeRender.h:812
TArray< FMaterialRelevance > MaterialRelevances
Definition LandscapeRender.h:848
FVector4f HeightmapScaleBias
Definition LandscapeRender.h:826
Definition LandscapeRender.h:957
const UTexture2D * RedTexture
Definition LandscapeRender.h:960
const FLinearColor G
Definition LandscapeRender.h:964
const FMaterialRenderProxy *const Parent
Definition LandscapeRender.h:959
virtual bool GetParameterValue(EMaterialParameterType Type, const FHashedMaterialParameterInfo &ParameterInfo, FMaterialParameterValue &OutValue, const FMaterialRenderContext &Context) const
Definition LandscapeRender.h:991
virtual const FMaterial * GetMaterialNoFallback(ERHIFeatureLevel::Type InFeatureLevel) const override
Definition LandscapeRender.h:981
FLandscapeDebugMaterialRenderProxy(const FMaterialRenderProxy *InParent, const UTexture2D *TexR, const UTexture2D *TexG, const UTexture2D *TexB, const FLinearColor &InR, const FLinearColor &InG, const FLinearColor &InB)
Definition LandscapeRender.h:968
virtual const FMaterialRenderProxy * GetFallback(ERHIFeatureLevel::Type InFeatureLevel) const override
Definition LandscapeRender.h:986
const UTexture2D * GreenTexture
Definition LandscapeRender.h:961
const FLinearColor B
Definition LandscapeRender.h:965
const FLinearColor R
Definition LandscapeRender.h:963
const UTexture2D * BlueTexture
Definition LandscapeRender.h:962
Definition LandscapeRender.h:174
TArray< FLandscapeBatchElementParams, SceneRenderingAllocator > ElementParams
Definition LandscapeRender.h:176
Definition LandscapeRender.h:300
FLandscapeFixedGridVertexFactory(ERHIFeatureLevel::Type InFeatureLevel)
Definition LandscapeRender.h:304
static LANDSCAPE_API void ModifyCompilationEnvironment(const FVertexFactoryShaderPermutationParameters &Parameters, FShaderCompilerEnvironment &OutEnvironment)
Definition LandscapeRender.cpp:3772
Definition LandscapeRender.h:597
FLandscapeLODOverridesCustomRenderPassUserData(const TMap< uint32, int32 > &InLandscapeLODOverrides)
Definition LandscapeRender.h:601
IMPLEMENT_CUSTOM_RENDER_PASS_USER_DATA(FLandscapeLODOverridesCustomRenderPassUserData)
const TMap< uint32, int32 > & GetLandscapeLODOverrides() const
Definition LandscapeRender.h:606
Definition LandscapeRender.h:1135
virtual const FMaterialRenderProxy * GetFallback(ERHIFeatureLevel::Type InFeatureLevel) const override
Definition LandscapeRender.h:1155
virtual const FMaterial * GetMaterialNoFallback(ERHIFeatureLevel::Type InFeatureLevel) const override
Definition LandscapeRender.h:1151
virtual bool GetParameterValue(EMaterialParameterType Type, const FHashedMaterialParameterInfo &ParameterInfo, FMaterialParameterValue &OutValue, const FMaterialRenderContext &Context) const
Definition LandscapeRender.h:1160
FLandscapeLayerUsageRenderProxy(const FMaterialRenderProxy *InParent, int32 InComponentSizeVerts, const TArray< FLinearColor > &InLayerColors, float InRotation)
Definition LandscapeRender.h:1142
Definition LandscapeRender.h:1085
virtual const FMaterial * GetMaterialNoFallback(ERHIFeatureLevel::Type InFeatureLevel) const override
Definition LandscapeRender.h:1100
FLandscapeMaskMaterialRenderProxy(const FMaterialRenderProxy *InParent, const UTexture2D *InTexture, const bool InbInverted)
Definition LandscapeRender.h:1092
const UTexture2D * SelectTexture
Definition LandscapeRender.h:1088
virtual bool GetParameterValue(EMaterialParameterType Type, const FHashedMaterialParameterInfo &ParameterInfo, FMaterialParameterValue &OutValue, const FMaterialRenderContext &Context) const
Definition LandscapeRender.h:1109
const bool bInverted
Definition LandscapeRender.h:1089
virtual const FMaterialRenderProxy * GetFallback(ERHIFeatureLevel::Type InFeatureLevel) const override
Definition LandscapeRender.h:1104
const FMaterialRenderProxy *const Parent
Definition LandscapeRender.h:1087
Definition LandscapeRender.h:680
Definition LandscapeRender.h:616
int32 GetNumViewsWithShowCollision() const
Definition LandscapeRender.h:630
static TArray< FLandscapeRenderSystem * > GetLandscapeRenderSystems(const class FSceneInterface *InScene)
Definition LandscapeRender.h:419
virtual void GetSectionBoundsAndLocalToWorld(FBoxSphereBounds &LocalBounds, FMatrix &LocalToWorld) const =0
virtual float ComputeLODForView(const FSceneView &InView) const =0
virtual int32 GetComponentResolution() const
Definition LandscapeRender.h:436
virtual double ComputeSectionResolution() const
Definition LandscapeRender.h:430
virtual ~FLandscapeSectionInfo()=default
virtual void GetSectionCenterAndVectors(FVector &OutSectionCenterWorldSpace, FVector &OutSectionXVectorWorldSpace, FVector &OutSectionYVectorWorldSpace) const =0
virtual int32 GetSectionPriority() const
Definition LandscapeRender.h:426
virtual void OnRenderCoordsChanged(FRHICommandListBase &RHICmdList)=0
virtual const FPrimitiveSceneInfo * GetPrimitiveSceneInfo() const =0
virtual bool ShouldInvalidateShadows(const FSceneView &InView, float InLODValue, float InLastShadowInvalidationLODValue) const
Definition LandscapeRender.h:441
virtual float ComputeLODBias() const =0
Definition LandscapeRender.h:1037
const FMaterialRenderProxy *const Parent
Definition LandscapeRender.h:1039
virtual const FMaterialRenderProxy * GetFallback(ERHIFeatureLevel::Type InFeatureLevel) const override
Definition LandscapeRender.h:1054
FLandscapeSelectMaterialRenderProxy(const FMaterialRenderProxy *InParent, const UTexture2D *InTexture)
Definition LandscapeRender.h:1043
const UTexture2D * SelectTexture
Definition LandscapeRender.h:1040
virtual const FMaterial * GetMaterialNoFallback(ERHIFeatureLevel::Type InFeatureLevel) const override
Definition LandscapeRender.h:1050
virtual bool GetParameterValue(EMaterialParameterType Type, const FHashedMaterialParameterInfo &ParameterInfo, FMaterialParameterValue &OutValue, const FMaterialRenderContext &Context) const
Definition LandscapeRender.h:1059
Definition LandscapeRender.h:359
int32 NumIndexBuffers
Definition LandscapeRender.h:371
FIndexBuffer ** IndexBuffers
Definition LandscapeRender.h:387
FLandscapeVertexFactory * FixedGridVertexFactory
Definition LandscapeRender.h:377
FLandscapeVertexFactory * VertexFactory
Definition LandscapeRender.h:376
FRenderResource * TileMesh
Definition LandscapeRender.h:382
int32 NumVertices
Definition LandscapeRender.h:369
int32 SubsectionSizeVerts
Definition LandscapeRender.h:372
FVertexBuffer * TileDataBuffer
Definition LandscapeRender.h:384
void CreateIndexBuffers(FRHICommandListBase &RHICmdList, const FName &OwnerName)
Definition LandscapeRender.cpp:3277
FLandscapeIndexRanges * IndexRanges
Definition LandscapeRender.h:390
void CreateGrassIndexBuffer(FRHICommandListBase &RHICmdList, const FName &InOwnerName)
Definition LandscapeRender.cpp:3401
TArray< int32, TInlineAllocator< 8 > > GrassIndexMipOffsets
Definition LandscapeRender.h:394
int32 NumSubsections
Definition LandscapeRender.h:373
FLandscapeVertexFactory * TileVertexFactory
Definition LandscapeRender.h:383
int32 SharedBuffersKey
Definition LandscapeRender.h:370
bool bUse32BitIndices
Definition LandscapeRender.h:392
int32 NumRayTracingSections
Definition LandscapeRender.h:374
TArray< TUniformBuffer< FLandscapeFixedGridUniformShaderParameters > > LandscapeFixedGridUniformShaderParameters
Definition LandscapeRender.h:380
FIndexBuffer * GrassIndexBuffer
Definition LandscapeRender.h:393
FLandscapeVertexBuffer * VertexBuffer
Definition LandscapeRender.h:378
Definition LandscapeRender.h:325
virtual ~FLandscapeVertexBuffer()
Definition LandscapeRender.h:344
FLandscapeVertexBuffer(FRHICommandListBase &RHICmdList, ERHIFeatureLevel::Type InFeatureLevel, int32 InNumVertices, int32 InSubsectionSizeVerts, int32 InNumSubsections, const FName &InOwnerName)
Definition LandscapeRender.h:333
virtual void InitRHI(FRHICommandListBase &RHICmdList) override
Definition LandscapeRender.cpp:3229
Definition LandscapeRender.h:206
void GetElementShaderBindings(const class FSceneInterface *Scene, const FSceneView *InView, const class FMeshMaterialShader *Shader, const EVertexInputStreamType InputStreamType, ERHIFeatureLevel::Type FeatureLevel, const FVertexFactory *VertexFactory, const FMeshBatchElement &BatchElement, class FMeshDrawSingleShaderBindings &ShaderBindings, FVertexInputStreamArray &VertexStreams) const
Definition LandscapeRender.cpp:3655
Definition LandscapeRender.h:180
void Bind(const FShaderParameterMap &ParameterMap)
Definition LandscapeRender.h:187
void GetElementShaderBindings(const class FSceneInterface *Scene, const FSceneView *InView, const class FMeshMaterialShader *Shader, const EVertexInputStreamType InputStreamType, ERHIFeatureLevel::Type FeatureLevel, const FVertexFactory *VertexFactory, const FMeshBatchElement &BatchElement, class FMeshDrawSingleShaderBindings &ShaderBindings, FVertexInputStreamArray &VertexStreams) const
Definition LandscapeRender.cpp:3568
Definition LandscapeRender.h:227
virtual LANDSCAPE_API void InitRHI(FRHICommandListBase &RHICmdList) override
Definition LandscapeRender.cpp:3680
virtual ~FLandscapeVertexFactory()
Definition LandscapeRender.h:234
static LANDSCAPE_API bool ShouldCompilePermutation(const FVertexFactoryShaderPermutationParameters &Parameters)
Definition LandscapeRender.cpp:3699
FDataType Data
Definition LandscapeRender.h:281
static LANDSCAPE_API void GetPSOPrecacheVertexFetchElements(EVertexInputStreamType VertexInputStreamType, FVertexDeclarationElementList &Elements)
Definition LandscapeRender.cpp:3720
static LANDSCAPE_API void ModifyCompilationEnvironment(const FVertexFactoryShaderPermutationParameters &Parameters, FShaderCompilerEnvironment &OutEnvironment)
Definition LandscapeRender.cpp:3706
void SetData(const FDataType &InData)
Definition LandscapeRender.h:274
virtual void ReleaseResource() override final
Definition LandscapeRender.h:269
Definition SceneManagement.h:820
Definition SceneManagement.h:333
Definition LightSceneProxy.h:43
Definition MaterialRenderProxy.h:102
virtual const FMaterialRenderProxy * GetFallback(ERHIFeatureLevel::Type InFeatureLevel) const =0
Definition MaterialShared.h:2058
Definition MeshDrawShaderBindings.h:104
Definition MeshElementCollector.h:26
Definition MapBuildDataRegistry.h:56
FLightMapRef LightMap
Definition MapBuildDataRegistry.h:58
const FLightmapResourceCluster * ResourceCluster
Definition MapBuildDataRegistry.h:62
FShadowMapRef ShadowMap
Definition MapBuildDataRegistry.h:59
TArray< FGuid > IrrelevantLights
Definition MapBuildDataRegistry.h:60
Definition MeshMaterialShader.h:68
Definition NameTypes.h:617
Definition SceneManagement.h:1452
Definition PrimitiveSceneInfo.h:266
Definition PrimitiveSceneProxy.h:296
Definition RenderGraphBuilder.h:49
Definition RHICommandList.h:455
Definition RefCounting.h:252
Definition RenderResource.h:37
virtual RENDERCORE_API void ReleaseResource()
Definition RenderResource.cpp:206
void SetOwnerName(FName InOwnerName)
Definition RenderResource.h:120
RENDERCORE_API void UpdateRHI(FRHICommandListBase &RHICmdList)
Definition RenderResource.cpp:225
virtual RENDERCORE_API void InitResource(FRHICommandListBase &RHICmdList)
Definition RenderResource.cpp:178
Definition SceneInterface.h:106
Definition SceneViewExtension.h:274
Definition SceneView.h:2212
Definition SceneView.h:1425
Definition ShaderCore.h:323
Definition StaticMeshSceneProxy.h:34
Definition SceneManagement.h:1293
Definition RenderResource.h:474
Definition VertexFactory.h:172
Definition VertexFactory.h:661
Definition CustomRenderPass.h:33
UE_REWRITE SizeType Num() const
Definition Array.h:1144
Definition UnrealString.h.inl:34
Definition DynamicRHIResourceArray.h:31
Definition UniquePtr.h:107
Definition SceneRendererInterface.h:24
Definition LandscapeEditResourcesSubsystem.h:244
Definition MaterialInterface.h:296
Definition Texture2D.h:26
@ LOD
Definition AnimTypes.h:107
Type
Definition PawnAction_Move.h:11
Definition SceneComponent.h:24
Type
Definition RHIFeatureLevel.h:20
@ SM5
Definition RHIFeatureLevel.h:42
Definition Landscape.h:55
bool NeedsFixedGridVertexFactory(EShaderPlatform InShaderPlatform)
Definition LandscapeRender.cpp:348
bool ShouldBuildGrassMapRenderingResources()
Definition LandscapeRender.cpp:365
Definition SceneView.h:41
Definition EngineTypes.h:1339
Definition LandscapeRender.h:162
FUniformBufferRHIRef LandscapeSectionLODUniformParameters
Definition LandscapeRender.h:168
const TUniformBuffer< FLandscapeUniformShaderParameters > * LandscapeUniformShaderParametersResource
Definition LandscapeRender.h:166
int32 CurrentLOD
Definition LandscapeRender.h:170
const FLandscapeComponentSceneProxy * SceneProxy
Definition LandscapeRender.h:169
const TArray< TUniformBuffer< FLandscapeFixedGridUniformShaderParameters > > * FixedGridUniformShaderParameters
Definition LandscapeRender.h:167
Definition LandscapeRender.h:660
bool bShowPatches
Definition LandscapeRender.h:663
bool bDisableStatic
Definition LandscapeRender.h:664
Definition LandscapeRender.h:471
float LOD1ScreenSizeSquared
Definition LandscapeRender.h:473
int8 DrawCollisionPawnLOD
Definition LandscapeRender.h:479
float LODOnePlusDistributionScalarSquared
Definition LandscapeRender.h:474
int8 ForcedLOD
Definition LandscapeRender.h:478
int8 LastLODIndex
Definition LandscapeRender.h:477
float VirtualShadowMapInvalidationLimitLOD
Definition LandscapeRender.h:476
int8 DrawCollisionVisibilityLOD
Definition LandscapeRender.h:480
float LastLODScreenSizeSquared
Definition LandscapeRender.h:475
float LOD0ScreenSizeSquared
Definition LandscapeRender.h:472
Definition LandscapeRender.h:467
int32 GetSectionLinearIndex(FIntPoint InRenderCoord) const
Definition LandscapeRender.h:549
TMap< uint32, TResourceArray< float > > PerViewStateCachedSectionLODValues
Definition LandscapeRender.h:508
int8 ForcedLODOverride
Definition LandscapeRender.h:520
TArray< FLandscapeSectionInfo * > SectionInfos
Definition LandscapeRender.h:493
FLandscapeSectionInfo * GetSectionInfo(FIntPoint InRenderCoord)
Definition LandscapeRender.h:569
FUniformBufferRHIRef SectionLODUniformBuffer
Definition LandscapeRender.h:502
FBufferRHIRef SectionLODBiasBuffer
Definition LandscapeRender.h:499
TMap< UE::Renderer::Private::IShadowInvalidatingInstances *, TArray< const FPrimitiveSceneInfo * > > ShadowInvalidationRequests
Definition LandscapeRender.h:517
void SetSectionInfo(FIntPoint InRenderCoord, FLandscapeSectionInfo *InSectionInfo)
Definition LandscapeRender.h:561
uint32 FViewKey
Definition LandscapeRender.h:468
TMap< uint32, SectionKeyToLODValueMap > PerViewStateLastShadowInvalidationSectionLODValues
Definition LandscapeRender.h:514
FShaderResourceViewRHIRef SectionLODBiasSRV
Definition LandscapeRender.h:500
int32 RegisteredCount
Definition LandscapeRender.h:497
int32 SectionsRemovedSinceLastCompact
Definition LandscapeRender.h:529
static TBitArray LandscapeIndexAllocator
Definition LandscapeRender.h:485
FIntPoint Size
Definition LandscapeRender.h:490
FIntPoint Min
Definition LandscapeRender.h:489
bool IsValidCoord(FIntPoint InRenderCoord) const
Definition LandscapeRender.h:543
int32 ReferenceCount
Definition LandscapeRender.h:495
TMap< const FSceneView *, TResourceArray< float > > PerViewCachedSectionLODValues
Definition LandscapeRender.h:507
int32 LandscapeIndex
Definition LandscapeRender.h:487
TResourceArray< float > SectionLODBiases
Definition LandscapeRender.h:492
Definition LandscapeRender.h:362
int32 MaxIndexFull
Definition LandscapeRender.h:366
int32 MinIndex[LANDSCAPE_MAX_SUBSECTION_NUM][LANDSCAPE_MAX_SUBSECTION_NUM]
Definition LandscapeRender.h:363
int32 MinIndexFull
Definition LandscapeRender.h:365
int32 MaxIndex[LANDSCAPE_MAX_SUBSECTION_NUM][LANDSCAPE_MAX_SUBSECTION_NUM]
Definition LandscapeRender.h:364
Definition LandscapeRender.h:241
FVertexStreamComponent PositionComponent
Definition LandscapeRender.h:243
Definition LandscapeRender.h:314
uint8 SubX
Definition LandscapeRender.h:317
uint8 VertexY
Definition LandscapeRender.h:316
uint8 VertexX
Definition LandscapeRender.h:315
uint8 SubY
Definition LandscapeRender.h:318
Definition MaterialParameters.h:341
Definition MaterialShared.h:349
Definition MaterialParameters.h:96
Definition MeshBatch.h:232
Definition MeshBatch.h:371
Definition PrimitiveViewRelevance.h:14
Definition ShaderCore.h:544
Definition MeshMaterialShader.h:44
Definition VertexStreamComponent.h:22
Definition ObjectPtr.h:488
Definition BoxSphereBounds.h:25
static CORE_API const TVector< double > ZeroVector
Definition Vector.h:79