engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Public 属性 | 所有成员列表
FStaticLightingMesh类 参考abstract

A mesh which is used for computing static lighting. 更多...

#include <StaticLighting.h>

+ 类 FStaticLightingMesh 继承关系图:

Public 成员函数

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.
 

Public 属性

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
 

详细描述

A mesh which is used for computing static lighting.

成员函数说明

◆ GetLightingGuid()

virtual const FGuid & FStaticLightingMesh::GetLightingGuid ( ) const
inlinevirtual

Returns the Guid used for static lighting.

返回
FGuid that identifies the mapping

被 FBSPSurfaceStaticLighting 重载.

◆ GetShadingTriangle()

virtual void FStaticLightingMesh::GetShadingTriangle ( int32  TriangleIndex,
FStaticLightingVertex &  OutV0,
FStaticLightingVertex &  OutV1,
FStaticLightingVertex &  OutV2 
) const
inlinevirtual

Accesses a triangle for shading.

参数
TriangleIndex- The triangle to access, valid range is [0, NumShadingTriangles).
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.
ElementIndex- Indicates the element index of the triangle.

◆ GetShadingTriangleIndices()

virtual void FStaticLightingMesh::GetShadingTriangleIndices ( int32  TriangleIndex,
int32 &  OutI0,
int32 &  OutI1,
int32 &  OutI2 
) const
inlinevirtual

Accesses a triangle's vertex indices for shading.

参数
TriangleIndex- The triangle to access, valid range is [0, NumShadingTriangles).
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.

◆ GetTriangle()

virtual void FStaticLightingMesh::GetTriangle ( int32  TriangleIndex,
FStaticLightingVertex &  OutV0,
FStaticLightingVertex &  OutV1,
FStaticLightingVertex &  OutV2 
) const
pure 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.

在 FStaticMeshStaticLightingMesh, FLandscapeStaticLightingMesh , 以及 FBSPSurfaceStaticLighting 内被实现.

◆ GetTriangleIndices()

virtual void FStaticLightingMesh::GetTriangleIndices ( int32  TriangleIndex,
int32 &  OutI0,
int32 &  OutI1,
int32 &  OutI2 
) const
pure 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.

在 FStaticMeshStaticLightingMesh, FLandscapeStaticLightingMesh , 以及 FBSPSurfaceStaticLighting 内被实现.

◆ IntersectLightRay()

virtual FLightRayIntersection FStaticLightingMesh::IntersectLightRay ( const FVector &  Start,
const FVector &  End,
bool  bFindNearestIntersection 
) const
pure 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.

在 FStaticMeshStaticLightingMesh, FLandscapeStaticLightingMesh , 以及 FBSPSurfaceStaticLighting 内被实现.

◆ IsControllingShadowPerElement()

virtual bool FStaticLightingMesh::IsControllingShadowPerElement ( ) const
inlinevirtual
返回
true if the mesh wants to control shadow casting per element rather than per mesh.

被 FStaticMeshStaticLightingMesh 重载.

◆ IsTriangleCastingShadow()

virtual bool FStaticLightingMesh::IsTriangleCastingShadow ( uint32  TriangleIndex) const
inlinevirtual
返回
true if the specified triangle casts a shadow.

被 FStaticMeshStaticLightingMesh 重载.

◆ IsUniformShadowCaster()

virtual bool FStaticLightingMesh::IsUniformShadowCaster ( ) const
inlinevirtual

Checks whether ShouldCastShadow will return true always.

返回
true if ShouldCastShadow will return true always.

被 FStaticMeshStaticLightingMesh 重载.

◆ ShouldCastShadow()

FORCEINLINE bool FStaticLightingMesh::ShouldCastShadow ( ULightComponent *  Light,
const FStaticLightingMapping *  Receiver 
) const
virtual

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

This doesn't determine if the mesh actually shadows the receiver, just whether it should be allowed to.

参数
Light- The light source.
Receiver- The mapping which is receiving the light.
返回
true if the mesh should shadow the receiver from the light.

被 FStaticMeshStaticLightingMesh 重载.


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