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

A 2D array of incident lighting data. 更多...

#include <LightMap.h>

+ 类 FLightMap2D 继承关系图:

Public 成员函数

UTexture2D * GetSkyOcclusionTexture () const
 Returns SkyOcclusionTexture. 更多...
 
const UTexture2D * GetTexture (uint32 BasisIndex) const
 Returns the texture containing the RGB coefficients for a specific basis. 更多...
 
bool IsValid (uint32 BasisIndex) const
 Returns whether the specified basis has a valid lightmap texture or not. 更多...
 
- Public 成员函数 继承自 FLightMap
FORCEINLINE bool AllowsHighQualityLightmaps () const
 
bool ContainsLight (const FGuid &LightGuid) const
 Checks if a light is stored in this light-map. 更多...
 
 FLightMap ()
 Default constructor.
 
virtual ~FLightMap ()
 Destructor.
 

静态 Public 成员函数

static TRefCountPtr< FLightMap2D > AllocateInstancedLightMap (UObject *LightMapOuter, UInstancedStaticMeshComponent *Component, TArray< TUniquePtr< FQuantizedLightmapData > > SourceQuantizedData, TArray< TMap< ULightComponent *, TUniquePtr< FShadowMapData2D > > > &&InstancedShadowMapData, UMapBuildDataRegistry *Registry, FGuid MapBuildDataId, const FBoxSphereBounds &Bounds, ELightMapPaddingType InPaddingType, ELightMapFlags LightmapFlags)
 Allocates texture space for the light-map and stores the light-map's raw data for deferred encoding. 更多...
 
static TRefCountPtr< FLightMap2D > AllocateLightMap (UObject *LightMapOuter, FQuantizedLightmapData *&SourceQuantizedData, const TMap< ULightComponent *, FShadowMapData2D * > &SourceShadowMapData, const FBoxSphereBounds &Bounds, ELightMapPaddingType InPaddingType, ELightMapFlags InLightmapFlags)
 Allocates texture space for the light-map and stores the light-map's raw data for deferred encoding. 更多...
 
static void EncodeTextures (UWorld *InWorld, ULevel *LightingScenario, bool bLightingSuccessful, bool bMultithreadedEncode=false)
 Executes all pending light-map encoding requests. 更多...
 
static void SetStatusUpdate (bool bInEnable)
 Call to enable/disable status update of LightMap encoding
 

Public 属性

FVector4 AddVectors [NUM_STORED_LIGHTMAP_COEF]
 Bias value to apply to the coefficients.
 
bool bShadowChannelValid [4]
 Tracks which of the 4 channels has valid texture data.
 
FVector2D CoordinateBias
 The bias which is applied to the light-map coordinates before sampling the light-map textures.
 
FVector2D CoordinateScale
 The scale which is applied to the light-map coordinates before sampling the light-map textures.
 
FVector4 InvUniformPenumbraSize
 Stores the inverse of the penumbra size, normalized. 更多...
 
FVector4 ScaleVectors [NUM_STORED_LIGHTMAP_COEF]
 A scale to apply to the coefficients.
 
ULightMapTexture2D * Textures [2]
 The textures containing the light-map data.
 
ULightMapVirtualTexture2D * VirtualTexture
 The virtual textures containing the light-map data.
 
- Public 属性 继承自 FLightMap
TArray< FGuid > LightGuids
 The GUIDs of lights which this light-map stores.
 

静态 Protected 属性

static bool bUpdateStatus
 If true, update the status when encoding light maps
 

额外继承的成员函数

- Protected 成员函数 继承自 FLightMap
virtual void Cleanup ()
 Called when the light-map is no longer referenced. 更多...
 
- Protected 属性 继承自 FLightMap
bool bAllowHighQualityLightMaps
 Indicates whether the lightmap is being used for directional or simple lighting.
 

详细描述

A 2D array of incident lighting data.

成员函数说明

◆ AllocateInstancedLightMap()

static TRefCountPtr< FLightMap2D > FLightMap2D::AllocateInstancedLightMap ( UObject *  LightMapOuter,
UInstancedStaticMeshComponent *  Component,
TArray< TUniquePtr< FQuantizedLightmapData > >  SourceQuantizedData,
TArray< TMap< ULightComponent *, TUniquePtr< FShadowMapData2D > > > &&  InstancedShadowMapData,
UMapBuildDataRegistry *  Registry,
FGuid  MapBuildDataId,
const FBoxSphereBounds &  Bounds,
ELightMapPaddingType  InPaddingType,
ELightMapFlags  LightmapFlags 
)
static

Allocates texture space for the light-map and stores the light-map's raw data for deferred encoding.

If the light-map has no lights in it, it will return NULL. SourceQuantizedData will be deleted by this function.

参数
Component- The component that owns this lightmap
SourceQuantizedData- If the data is already quantized, the values will be in here, and not in RawData.
Bounds- The bounds of the primitive the light-map will be rendered on. Used as a hint to pack light-maps on nearby primitives in the same texture.
InPaddingType- the method for padding the lightmap.
LightmapFlags- flags that determine how the lightmap is stored (e.g. streamed or not)

◆ AllocateLightMap()

static TRefCountPtr< FLightMap2D > FLightMap2D::AllocateLightMap ( UObject *  LightMapOuter,
FQuantizedLightmapData *&  SourceQuantizedData,
const TMap< ULightComponent *, FShadowMapData2D * > &  SourceShadowMapData,
const FBoxSphereBounds &  Bounds,
ELightMapPaddingType  InPaddingType,
ELightMapFlags  InLightmapFlags 
)
static

Allocates texture space for the light-map and stores the light-map's raw data for deferred encoding.

If the light-map has no lights in it, it will return NULL. SourceQuantizedData will be deleted by this function.

参数
LightMapOuter- The package to create the light-map and textures in.
SourceQuantizedData- If the data is already quantized, the values will be in here, and not in RawData.
SourceShadowMapData- Shadow map data to be combined into the lightmap atlas, used when creating VT lightmaps
Bounds- The bounds of the primitive the light-map will be rendered on. Used as a hint to pack light-maps on nearby primitives in the same texture.
InPaddingType- the method for padding the lightmap.
LightmapFlags- flags that determine how the lightmap is stored (e.g. streamed or not)

◆ EncodeTextures()

static void FLightMap2D::EncodeTextures ( UWorld *  InWorld,
ULevel *  LightingScenario,
bool  bLightingSuccessful,
bool  bMultithreadedEncode = false 
)
static

Executes all pending light-map encoding requests.

参数
bLightingSuccessfulWhether the lighting build was successful or not.
bForceCompletionForce all encoding to be fully completed (they may be asynchronous).

◆ GetSkyOcclusionTexture()

UTexture2D * FLightMap2D::GetSkyOcclusionTexture ( ) const

Returns SkyOcclusionTexture.

返回
The SkyOcclusionTexture.

◆ GetTexture()

const UTexture2D * FLightMap2D::GetTexture ( uint32  BasisIndex) const

Returns the texture containing the RGB coefficients for a specific basis.

参数
BasisIndex- The basis index.
返回
The RGB coefficient texture.

◆ IsValid()

bool FLightMap2D::IsValid ( uint32  BasisIndex) const

Returns whether the specified basis has a valid lightmap texture or not.

参数
BasisIndex- The basis index.
返回
true if the specified basis has a valid lightmap texture, otherwise false

类成员变量说明

◆ InvUniformPenumbraSize

FVector4 FLightMap2D::InvUniformPenumbraSize

Stores the inverse of the penumbra size, normalized.

Stores 1 to interpret the shadowmap as a shadow factor directly, instead of as a distance field.


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