UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FLandscapeStaticLightingMesh Class Reference

#include <LandscapeLight.h>

+ Inheritance diagram for FLandscapeStaticLightingMesh:

Public Member Functions

 FLandscapeStaticLightingMesh (ULandscapeComponent *InComponent, const TArray< ULightComponent * > &InRelevantLights, int32 InExpandQuadsX, int32 InExpandQuadsY, float LightMapRatio, int32 InLOD)
 
virtual ~FLandscapeStaticLightingMesh ()
 
virtual void GetTriangle (int32 TriangleIndex, FStaticLightingVertex &OutV0, FStaticLightingVertex &OutV1, FStaticLightingVertex &OutV2) const
 
virtual void GetTriangleIndices (int32 TriangleIndex, int32 &OutI0, int32 &OutI1, int32 &OutI2) const
 
virtual FLightRayIntersection IntersectLightRay (const FVector &Start, const FVector &End, bool bFindNearestIntersection) const
 
virtual bool IsInstancedMesh () const override
 
- Public Member Functions inherited from FStaticLightingMesh
ENGINE_API FStaticLightingMesh (int32 InNumTriangles, int32 InNumShadingTriangles, int32 InNumVertices, int32 InNumShadingVertices, int32 InTextureCoordinateIndex, bool bInCastShadow, bool bInTwoSidedMaterial, const TArray< ULightComponent * > &InRelevantLights, const UPrimitiveComponent *const InComponent, const FBox &InBoundingBox, const FGuid &InSourceMeshGuid, const FGuid &InComponentGuid)
 
ENGINE_API FStaticLightingMesh ()
 
virtual ENGINE_API void Serialize (FArchive &Ar)
 
virtual ~FStaticLightingMesh ()
 
virtual void GetShadingTriangle (int32 TriangleIndex, FStaticLightingVertex &OutV0, FStaticLightingVertex &OutV1, FStaticLightingVertex &OutV2) const
 
virtual void GetShadingTriangleIndices (int32 TriangleIndex, int32 &OutI0, int32 &OutI1, int32 &OutI2) const
 
virtual bool ShouldCastShadow (ULightComponent *Light, const FStaticLightingMapping *Receiver) const
 
virtual bool IsTriangleCastingShadow (uint32 TriangleIndex) const
 
virtual bool IsControllingShadowPerElement () const
 
virtual bool IsUniformShadowCaster () const
 
virtual const FGuidGetLightingGuid () const
 
- Public Member Functions inherited from FRefCountedObject
 FRefCountedObject ()
 
virtual ~FRefCountedObject ()
 
 FRefCountedObject (const FRefCountedObject &Rhs)=delete
 
FRefCountedObjectoperator= (const FRefCountedObject &Rhs)=delete
 
FReturnedRefCountValue AddRef () const
 
uint32 Release () const
 
uint32 GetRefCount () const
 

Protected Member Functions

void GetHeightmapData (int32 InLOD, int32 GeometryLOD)
 
void GetStaticLightingVertex (int32 VertexIndex, FStaticLightingVertex &OutVertex) const
 

Protected Attributes

ULandscapeComponent * LandscapeComponent
 
FTransform LocalToWorld
 
int32 ComponentSizeQuads
 
float LightMapRatio
 
int32 ExpandQuadsX
 
int32 ExpandQuadsY
 
TArray< FColorHeightData
 
int32 NumVertices
 
int32 NumQuads
 
float UVFactor
 
bool bReverseWinding
 

Friends

class FLightmassExporter
 

Additional Inherited Members

- Public Attributes inherited from FStaticLightingMesh
const int32 NumTriangles
 
const int32 NumShadingTriangles
 
const int32 NumVertices
 
const int32 NumShadingVertices
 
const int32 TextureCoordinateIndex
 
TArray< int32VisibilityIds
 
const uint32 bCastShadow: 1
 
const uint32 bTwoSidedMaterial: 1
 
const TArray< ULightComponent * > RelevantLights
 
TArray< FGuidRelevantLightsGuid
 
const UPrimitiveComponent *const Component
 
FGuid ComponentGuid
 
FBox BoundingBox
 
FGuid Guid
 
FGuid SourceMeshGuid
 
TArray< TRefCountPtr< FStaticLightingMesh > > OtherMeshLODs
 
uint32 HLODTreeIndex
 
uint32 HLODChildStartIndex
 
uint32 HLODChildEndIndex
 

Detailed Description

Represents the triangles of a Landscape component to the static lighting system.

Constructor & Destructor Documentation

◆ FLandscapeStaticLightingMesh()

FLandscapeStaticLightingMesh::FLandscapeStaticLightingMesh ( ULandscapeComponent *  InComponent,
const TArray< ULightComponent * > &  InRelevantLights,
int32  InExpandQuadsX,
int32  InExpandQuadsY,
float  LightMapRatio,
int32  InLOD 
)

◆ ~FLandscapeStaticLightingMesh()

virtual FLandscapeStaticLightingMesh::~FLandscapeStaticLightingMesh ( )
virtual

Member Function Documentation

◆ GetHeightmapData()

void FLandscapeStaticLightingMesh::GetHeightmapData ( int32  InLOD,
int32  GeometryLOD 
)
protected

◆ GetStaticLightingVertex()

void FLandscapeStaticLightingMesh::GetStaticLightingVertex ( int32  VertexIndex,
FStaticLightingVertex OutVertex 
) const
protected

Fills in the static lighting vertex data for the Landscape vertex.

◆ GetTriangle()

virtual void FLandscapeStaticLightingMesh::GetTriangle ( int32  TriangleIndex,
FStaticLightingVertex OutV0,
FStaticLightingVertex OutV1,
FStaticLightingVertex OutV2 
) const
virtual

Accesses a triangle.

Parameters
TriangleIndex- The triangle to access.
OutV0- Upon return, should contain the first vertex of the triangle.
OutV1- Upon return, should contain the second vertex of the triangle.
OutV2- Upon return, should contain the third vertex of the triangle.

Implements FStaticLightingMesh.

◆ GetTriangleIndices()

virtual void FLandscapeStaticLightingMesh::GetTriangleIndices ( int32  TriangleIndex,
int32 OutI0,
int32 OutI1,
int32 OutI2 
) const
virtual

Accesses a triangle's vertex indices.

Parameters
TriangleIndex- The triangle to access.
OutI0- Upon return, should contain the first vertex index of the triangle.
OutI1- Upon return, should contain the second vertex index of the triangle.
OutI2- Upon return, should contain the third vertex index of the triangle.

Implements FStaticLightingMesh.

◆ IntersectLightRay()

virtual FLightRayIntersection FLandscapeStaticLightingMesh::IntersectLightRay ( const FVector Start,
const FVector End,
bool  bFindNearestIntersection 
) const
virtual

Checks if a line segment intersects the mesh.

Parameters
Start- The start point of the line segment.
End- The end point of the line segment.
bFindNearestIntersection- Whether the nearest intersection is needed, or any intersection.
Returns
The intersection of the light-ray with the mesh.

Implements FStaticLightingMesh.

◆ IsInstancedMesh()

virtual bool FLandscapeStaticLightingMesh::IsInstancedMesh ( ) const
inlineoverridevirtual

Returns true if this mesh is an instanced mesh.

Implements FStaticLightingMesh.

Friends And Related Symbol Documentation

◆ FLightmassExporter

friend class FLightmassExporter
friend

Member Data Documentation

◆ bReverseWinding

bool FLandscapeStaticLightingMesh::bReverseWinding
protected

◆ ComponentSizeQuads

int32 FLandscapeStaticLightingMesh::ComponentSizeQuads
protected

◆ ExpandQuadsX

int32 FLandscapeStaticLightingMesh::ExpandQuadsX
protected

◆ ExpandQuadsY

int32 FLandscapeStaticLightingMesh::ExpandQuadsY
protected

◆ HeightData

TArray<FColor> FLandscapeStaticLightingMesh::HeightData
protected

◆ LandscapeComponent

ULandscapeComponent* FLandscapeStaticLightingMesh::LandscapeComponent
protected

◆ LightMapRatio

float FLandscapeStaticLightingMesh::LightMapRatio
protected

◆ LocalToWorld

FTransform FLandscapeStaticLightingMesh::LocalToWorld
protected

◆ NumQuads

int32 FLandscapeStaticLightingMesh::NumQuads
protected

◆ NumVertices

int32 FLandscapeStaticLightingMesh::NumVertices
protected

◆ UVFactor

float FLandscapeStaticLightingMesh::UVFactor
protected

The documentation for this class was generated from the following file: