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

Represents a BSP surface to the static lighting system. 更多...

#include <ModelLight.h>

+ 类 FBSPSurfaceStaticLighting 继承关系图:

Public 成员函数

ENGINE_API FBSPSurfaceStaticLighting (const FNodeGroup *InNodeGroup, UModel *Model, UModelComponent *Component)
 Initialization constructor.
 
virtual const FGuid & GetLightingGuid () const override
 Returns the Guid used for static lighting. 更多...
 
virtual void GetTriangle (int32 TriangleIndex, FStaticLightingVertex &OutV0, FStaticLightingVertex &OutV1, FStaticLightingVertex &OutV2) const override
 Accesses a triangle. 更多...
 
virtual void GetTriangleIndices (int32 TriangleIndex, int32 &OutI0, int32 &OutI1, int32 &OutI2) const override
 Accesses a triangle's vertex indices. 更多...
 
virtual FLightRayIntersection IntersectLightRay (const FVector &Start, const FVector &End, bool bFindNearestIntersection) const override
 Checks if a line segment intersects the mesh. 更多...
 
virtual bool IsValidMapping () const override
 Whether or not this mapping should be processed or imported
 
- Public 成员函数 继承自 FStaticLightingTextureMapping
virtual void Apply (struct FQuantizedLightmapData *QuantizedData, const TMap< ULightComponent *, class FShadowMapData2D * > &ShadowMapData, ULevel *LightingScenario)=0
 Called when the static lighting has been computed to apply it to the mapping's owner. 更多...
 
ENGINE_API FStaticLightingTextureMapping (FStaticLightingMesh *InMesh, UObject *InOwner, int32 InSizeX, int32 InSizeY, int32 InLightmapTextureCoordinateIndex, bool bInBilinearFilter=true)
 Initialization constructor.
 
virtual FStaticLightingTextureMapping * GetTextureMapping ()
 
virtual bool IsTextureMapping () const
 
virtual bool IsValidMapping () const
 Whether or not this mapping should be processed or imported
 
- Public 成员函数 继承自 FStaticLightingMapping
 FStaticLightingMapping (FStaticLightingMesh *InMesh, UObject *InOwner)
 Initialization constructor.
 
virtual const FGuid & GetLightingGuid () const
 Returns the Guid used for static lighting. 更多...
 
virtual FStaticLightingTextureMapping * GetTextureMapping ()
 
virtual bool IsTextureMapping () const
 
virtual ~FStaticLightingMapping ()
 Virtual destructor.
 
- 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 属性

bool bComplete
 true if the surface has complete static lighting.
 
FIntRect MappedRect
 Minimum rectangle that encompasses all mapped texels.
 
const FNodeGroup * NodeGroup
 The surface's static lighting node group mapping info.
 
FQuantizedLightmapData * QuantizedData
 Quantized light map data
 
- Public 属性 继承自 FStaticLightingTextureMapping
const bool bBilinearFilter
 Whether to apply a bilinear filter to the sample or not.
 
const int32 LightmapTextureCoordinateIndex
 The lightmap texture coordinate index which is used for the mapping.
 
const int32 SizeX
 The width of the static lighting textures used by the mapping.
 
const int32 SizeY
 The height of the static lighting textures used by the mapping.
 
- Public 属性 继承自 FStaticLightingMapping
uint32 bProcessMapping: 1
 true if the mapping should be processed by Lightmass.
 
class FStaticLightingMesh * Mesh
 The mesh associated with the mapping.
 
UObject *const Owner
 The object which owns the mapping.
 
- 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 a BSP surface to the static lighting system.

成员函数说明

◆ GetLightingGuid()

virtual const FGuid & FBSPSurfaceStaticLighting::GetLightingGuid ( ) const
inlineoverridevirtual

Returns the Guid used for static lighting.

返回
FGuid that identifies the mapping

重载 FStaticLightingMesh .

◆ GetTriangle()

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

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 FBSPSurfaceStaticLighting::GetTriangleIndices ( int32  TriangleIndex,
int32 &  OutI0,
int32 &  OutI1,
int32 &  OutI2 
) const
overridevirtual

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 FBSPSurfaceStaticLighting::IntersectLightRay ( const FVector &  Start,
const FVector &  End,
bool  bFindNearestIntersection 
) const
overridevirtual

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.


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