FStaticMeshStaticLightingMesh

Represents the triangles of one LOD of a static mesh primitive to the static lighting system.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/StaticMeshLight.h

Include

#include "StaticMeshLight.h"

Syntax

class FStaticMeshStaticLightingMesh : public FStaticLightingMesh

Remarks

Represents the triangles of one LOD of a static mesh primitive to the static lighting system.

Variables

Name Description

Protected variable

const int32

 

LODIndex

The LOD this mesh represents.

Public variable

TArray< FStatic...

 

OtherLODs

The meshes representing other LODs of this primitive.

Constructors

Name Description

Public function

FStaticMeshStaticLightingMesh

(
    const UStaticMeshComponent* In...,
    int32 InLODIndex,
    const TArray< ULightComponent*...
)

Initialization constructor.

Functions

Name Description

Public function Virtual Const

const FSplin...

 

GetSplineParameters()

Protected function

void

 

SetLocalToWorld

(
    const FMatrix& InLocalToWorld
)

Sets the local to world matrix for this mesh, will also update LocalToWorldInverseTranspose

Overridden from FStaticLightingMesh

Name Description

Public function Virtual Const

void

 

ExportMeshInstance

(
    FLightmassExporter* Exporter
)

Export static lighting mesh instance data to an exporter

Public function Virtual Const

void

 

GetTriangle

(
    int32 TriangleIndex,
    FStaticLightingVertex& OutV0,
    FStaticLightingVertex& OutV1,
    FStaticLightingVertex& OutV2
)

Accesses a triangle.

Public function Virtual Const

void

 

GetTriangleIndices

(
    int32 TriangleIndex,
    int32& OutI0,
    int32& OutI1,
    int32& OutI2
)

Accesses a triangle's vertex indices.

Public function Virtual Const

FLightRayInt...

 

IntersectLightRay

(
    const FVector& Start,
    const FVector& End,
    bool bFindNearestIntersection
)

Checks if a line segment intersects the mesh.

Public function Virtual Const

bool

 

IsControllingShadowPerElement()

Public function Virtual Const

bool

 

IsTriangleCastingShadow

(
    uint32 TriangleIndex
)

Public function Virtual Const

bool

 

IsUniformShadowCaster()

Checks whether ShouldCastShadow will return true always.

Public function Virtual Const

bool

 

ShouldCastShadow

(
    ULightComponent* Light,
    const FStaticLightingMapping* ...
)

Determines whether the mesh should cast a shadow from a specific light on a specific mapping.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss