engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Protected 成员函数 | 所有成员列表
FLandscapeStaticLightingMesh类 参考

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

#include <LandscapeLight.h>

+ 类 FLandscapeStaticLightingMesh 继承关系图:

Public 成员函数

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. 更多...
 
- Public 成员函数 继承自 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 &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.
 

Protected 成员函数

void GetStaticLightingVertex (int32 VertexIndex, FStaticLightingVertex &OutVertex) const
 Fills in the static lighting vertex data for the Landscape vertex.
 

额外继承的成员函数

- Public 属性 继承自 FStaticLightingMesh
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 a Landscape component to the static lighting system.

成员函数说明

◆ GetTriangle()

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

Accesses a triangle.

参数
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.

实现了 FStaticLightingMesh.

◆ GetTriangleIndices()

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

Accesses a triangle's vertex indices.

参数
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.

实现了 FStaticLightingMesh.

◆ IntersectLightRay()

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

Checks if a line segment intersects the mesh.

参数
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.
返回
The intersection of the light-ray with the mesh.

实现了 FStaticLightingMesh.


该类的文档由以下文件生成: