Represents the triangles of one LOD of a static mesh primitive to the static lighting system.
更多...
|
|
| FStaticMeshStaticLightingMesh (const UStaticMeshComponent *InPrimitive, int32 InLODIndex, const TArray< ULightComponent * > &InRelevantLights) |
| | Initialization constructor.
|
| |
| virtual void | GetTriangle (int32 TriangleIndex, FStaticLightingVertex &OutV0, FStaticLightingVertex &OutV1, FStaticLightingVertex &OutV2) const |
| | Accesses a triangle. 更多...
|
| |
| virtual void | GetTriangleIndices (int32 TriangleIndex, int32 &OutI0, int32 &OutI1, int32 &OutI2) const |
| | Accesses a triangle's vertex indices. 更多...
|
| |
| virtual FLightRayIntersection | IntersectLightRay (const FVector &Start, const FVector &End, bool bFindNearestIntersection) const |
| | Checks if a line segment intersects the mesh. 更多...
|
| |
| virtual bool | IsControllingShadowPerElement () const |
| |
| virtual bool | IsTriangleCastingShadow (uint32 TriangleIndex) const |
| |
| virtual bool | IsUniformShadowCaster () const |
| | Checks whether ShouldCastShadow will return true always. 更多...
|
| |
| virtual bool | ShouldCastShadow (ULightComponent *Light, const FStaticLightingMapping *Receiver) const |
| | Determines whether the mesh should cast a shadow from a specific light on a specific mapping. 更多...
|
| |
|
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 &InGuid) |
| | Initialization constructor.
|
| |
| virtual const FGuid & | GetLightingGuid () const |
| | Returns the Guid used for static lighting. 更多...
|
| |
| virtual void | GetShadingTriangle (int32 TriangleIndex, FStaticLightingVertex &OutV0, FStaticLightingVertex &OutV1, FStaticLightingVertex &OutV2) const |
| | Accesses a triangle for shading. 更多...
|
| |
| virtual void | GetShadingTriangleIndices (int32 TriangleIndex, int32 &OutI0, int32 &OutI1, int32 &OutI2) const |
| | Accesses a triangle's vertex indices for shading. 更多...
|
| |
| virtual void | GetTriangle (int32 TriangleIndex, FStaticLightingVertex &OutV0, FStaticLightingVertex &OutV1, FStaticLightingVertex &OutV2) const =0 |
| | Accesses a triangle. 更多...
|
| |
| virtual void | GetTriangleIndices (int32 TriangleIndex, int32 &OutI0, int32 &OutI1, int32 &OutI2) const =0 |
| | Accesses a triangle's vertex indices. 更多...
|
| |
| virtual FLightRayIntersection | IntersectLightRay (const FVector &Start, const FVector &End, bool bFindNearestIntersection) const =0 |
| | Checks if a line segment intersects the mesh. 更多...
|
| |
| virtual bool | IsControllingShadowPerElement () const |
| |
| virtual bool | IsTriangleCastingShadow (uint32 TriangleIndex) const |
| |
| virtual bool | IsUniformShadowCaster () const |
| | Checks whether ShouldCastShadow will return true always. 更多...
|
| |
| virtual bool | ShouldCastShadow (ULightComponent *Light, const FStaticLightingMapping *Receiver) const |
| | Determines whether the mesh should cast a shadow from a specific light on a specific mapping. 更多...
|
| |
|
virtual | ~FStaticLightingMesh () |
| | Virtual destructor.
|
| |
|
|
TArray< FStaticLightingMesh * > | OtherLODs |
| | The meshes representing other LODs of this primitive.
|
| |
|
const uint32 | bCastShadow: 1 |
| | Whether the mesh casts a shadow.
|
| |
|
FBox | BoundingBox |
| | The bounding box of the mesh.
|
| |
|
const uint32 | bTwoSidedMaterial: 1 |
| | Whether the mesh uses a two-sided material.
|
| |
|
const UPrimitiveComponent *const | Component |
| | The primitive component this mesh was created by.
|
| |
|
FGuid | Guid |
| | Unique ID for tracking this lighting mesh during distributed lighting
|
| |
|
const int32 | NumShadingTriangles |
| | The number of shading triangles in the mesh.
|
| |
|
const int32 | NumShadingVertices |
| | The number of shading vertices in the mesh.
|
| |
|
const int32 | NumTriangles |
| | The number of triangles in the mesh that will be used for visibility tests.
|
| |
|
const int32 | NumVertices |
| | The number of vertices in the mesh that will be used for visibility tests.
|
| |
|
TArray< TRefCountPtr< FStaticLightingMesh > > | OtherMeshLODs |
| | Other FStaticLightingMesh's that should be considered the same mesh object (just different LOD), and should not shadow this LOD.
|
| |
|
const TArray< ULightComponent * > | RelevantLights |
| | The lights which affect the mesh's primitive.
|
| |
|
FGuid | SourceMeshGuid |
| | Cached guid for the source mesh
|
| |
|
const int32 | TextureCoordinateIndex |
| | The texture coordinate index which is used to parametrize materials.
|
| |
|
TArray< int32 > | VisibilityIds |
| | Used for precomputed visibility
|
| |
Represents the triangles of one LOD of a static mesh primitive to the static lighting system.