14class FLightmassExporter;
16class ULandscapeComponent;
45 return FString(
TEXT(
"LandscapeMapping"));
50 ULandscapeComponent* LandscapeComponent;
82 return FString(
TEXT(
"LandscapeVolumeMapping"));
138 UE_DEPRECATED(5.7,
"RetopologizeTool/XYOffset deprecated with the removal of non-edit layer landscapes")
169 if (CurrentSize > DesiredSize)
173 while (DesiredSize > 0)
176 DesiredSize = DesiredSize & ~(DesiredSize & ~(DesiredSize - 1));
187 const float LightMapRatio =
DestSize / (ComponentSize*
LightMapRes) * CurrentSize / DesiredSize;
188 return LightMapRatio;
#define check(expr)
Definition AssertionMacros.h:314
#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
Definition Archive.h:1208
Definition LandscapeLight.h:54
virtual void Apply(struct FQuantizedLightmapData *QuantizedData, const TMap< ULightComponent *, class FShadowMapData2D * > &ShadowMapData, const FStaticLightingBuildContext *LightingContext) override
Definition LandscapeLight.h:58
virtual bool IsValidMapping() const override
Definition LandscapeLight.h:78
virtual FString GetDescription() const override
Definition LandscapeLight.h:80
LANDSCAPE_API FLandscapeStaticLightingGlobalVolumeMapping(ULandscapeComponent *InPrimitive, FStaticLightingMesh *InMesh, int32 InLightMapWidth, int32 InLightMapHeight, bool bPerformFullQualityRebuild)
Definition LandscapeLight.h:89
virtual bool IsInstancedMesh() const override
Definition LandscapeLight.h:100
FLandscapeStaticLightingMesh(ULandscapeComponent *InComponent, const TArray< ULightComponent * > &InRelevantLights, int32 InExpandQuadsX, int32 InExpandQuadsY, float LightMapRatio, int32 InLOD)
virtual ~FLandscapeStaticLightingMesh()
int32 NumVertices
Definition LandscapeLight.h:127
int32 NumQuads
Definition LandscapeLight.h:128
void GetStaticLightingVertex(int32 VertexIndex, FStaticLightingVertex &OutVertex) const
float LightMapRatio
Definition LandscapeLight.h:121
virtual FLightRayIntersection IntersectLightRay(const FVector &Start, const FVector &End, bool bFindNearestIntersection) const
ULandscapeComponent * LandscapeComponent
Definition LandscapeLight.h:116
void GetHeightmapData(int32 InLOD, int32 GeometryLOD)
int32 ComponentSizeQuads
Definition LandscapeLight.h:120
virtual void GetTriangle(int32 TriangleIndex, FStaticLightingVertex &OutV0, FStaticLightingVertex &OutV1, FStaticLightingVertex &OutV2) const
bool bReverseWinding
Definition LandscapeLight.h:130
virtual void GetTriangleIndices(int32 TriangleIndex, int32 &OutI0, int32 &OutI1, int32 &OutI2) const
int32 ExpandQuadsY
Definition LandscapeLight.h:123
int32 ExpandQuadsX
Definition LandscapeLight.h:122
float UVFactor
Definition LandscapeLight.h:129
FTransform LocalToWorld
Definition LandscapeLight.h:119
TArray< FColor > HeightData
Definition LandscapeLight.h:125
friend class FLightmassExporter
Definition LandscapeLight.h:132
Definition LandscapeLight.h:23
FLandscapeStaticLightingTextureMapping(ULandscapeComponent *InPrimitive, FStaticLightingMesh *InMesh, int32 InLightMapWidth, int32 InLightMapHeight, bool bPerformFullQualityRebuild)
virtual LANDSCAPE_API void Apply(FQuantizedLightmapData *QuantizedData, const TMap< ULightComponent *, FShadowMapData2D * > &ShadowMapData, const FStaticLightingBuildContext *LightingContext)
virtual FString GetDescription() const
Definition LandscapeLight.h:43
LANDSCAPE_API FLandscapeStaticLightingTextureMapping(const FArchive &Ar)
Definition StaticLighting.h:93
Definition ShadowMap.h:100
Definition StaticLighting.h:114
Definition StaticLighting.h:406
Definition UnrealString.h.inl:34
Definition UnrealMathUtility.h:270
static UE_FORCEINLINE_HINT float Floor(float F)
Definition UnrealMathUtility.h:525
Definition LightMap.h:500
Definition StaticLighting.h:23