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

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

#include <StaticMeshLight.h>

+ 类 FStaticMeshStaticLightingMesh 继承关系图:

Public 成员函数

 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. 更多...
 
- 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.
 

Public 属性

TArray< FStaticLightingMesh * > OtherLODs
 The meshes representing other LODs of this primitive.
 
- 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
 

Protected 成员函数

void SetLocalToWorld (const FMatrix &InLocalToWorld)
 Sets the local to world matrix for this mesh, will also update LocalToWorldInverseTranspose 更多...
 

Protected 属性

const int32 LODIndex
 The LOD this mesh represents.
 

详细描述

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

成员函数说明

◆ GetTriangle()

virtual void FStaticMeshStaticLightingMesh::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 FStaticMeshStaticLightingMesh::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 FStaticMeshStaticLightingMesh::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.

◆ IsControllingShadowPerElement()

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

重载 FStaticLightingMesh .

◆ IsTriangleCastingShadow()

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

重载 FStaticLightingMesh .

◆ IsUniformShadowCaster()

virtual bool FStaticMeshStaticLightingMesh::IsUniformShadowCaster ( ) const
virtual

Checks whether ShouldCastShadow will return true always.

返回
true if ShouldCastShadow will return true always.

重载 FStaticLightingMesh .

◆ SetLocalToWorld()

void FStaticMeshStaticLightingMesh::SetLocalToWorld ( const FMatrix &  InLocalToWorld)
protected

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

参数
InLocalToWorldLocal to world matrix to apply

◆ ShouldCastShadow()

virtual bool FStaticMeshStaticLightingMesh::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.

重载 FStaticLightingMesh .


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