![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <LightMap.h>
Inheritance diagram for FLightMap2D:Public Attributes | |
| TObjectPtr< ULightMapTexture2D > | Textures [2] |
| TObjectPtr< ULightMapTexture2D > | SkyOcclusionTexture |
| TObjectPtr< ULightMapTexture2D > | AOMaterialMaskTexture |
| TObjectPtr< UShadowMapTexture2D > | ShadowMapTexture |
| TObjectPtr< ULightMapVirtualTexture2D > | VirtualTextures [2] |
| FVector4f | ScaleVectors [NUM_STORED_LIGHTMAP_COEF] |
| FVector4f | AddVectors [NUM_STORED_LIGHTMAP_COEF] |
| FVector2D | CoordinateScale |
| FVector2D | CoordinateBias |
| FVector4f | InvUniformPenumbraSize |
| bool | bShadowChannelValid [4] |
Public Attributes inherited from FLightMap | |
| TArray< FGuid > | LightGuids |
Protected Member Functions | |
| ENGINE_API | FLightMap2D (const TArray< FGuid > &InLightGuids) |
Protected Member Functions inherited from FLightMap | |
| virtual ENGINE_API void | Cleanup () |
Static Protected Attributes | |
| static ENGINE_API bool | bUpdateStatus = true |
Additional Inherited Members | |
Public Types inherited from FLightMap | |
| enum | { LMT_None = 0 , LMT_1D = 1 , LMT_2D = 2 } |
Protected Attributes inherited from FLightMap | |
| bool | bAllowHighQualityLightMaps |
A 2D array of incident lighting data.
| FLightMap2D::FLightMap2D | ( | ) |
| ENGINE_API FLightMap2D::FLightMap2D | ( | bool | InAllowHighQualityLightMaps | ) |
|
virtual |
Reimplemented from FLightMap.
|
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) |
|
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) |
|
static |
Executes all pending light-map encoding requests.
| bLightingSuccessful | Whether the lighting build was successful or not. |
| bForceCompletion | Force all encoding to be fully completed (they may be asynchronous). |
Executes all pending light-map encoding requests.
| bLightingSuccessful | Whether the lighting build was successful or not. |
| bMultithreadedEncode | encode textures on different threads ;) |
| UTexture2D * FLightMap2D::GetAOMaterialMaskTexture | ( | ) | const |
|
inline |
|
inline |
|
virtual |
Implements FLightMap.
|
inlinevirtual |
Reimplemented from FLightMap.
|
inlinevirtual |
Reimplemented from FLightMap.
|
inline |
|
virtual |
Reimplemented from FLightMap.
| UTexture2D * FLightMap2D::GetSkyOcclusionTexture | ( | ) | const |
Returns SkyOcclusionTexture.
| UTexture2D * FLightMap2D::GetTexture | ( | uint32 | BasisIndex | ) |
| const UTexture2D * FLightMap2D::GetTexture | ( | uint32 | BasisIndex | ) | const |
Returns the texture containing the RGB coefficients for a specific basis.
| BasisIndex | - The basis index. |
|
inline |
Returns whether the specified basis has a valid lightmap texture or not.
| BasisIndex | - The basis index. |
| bool FLightMap2D::IsVirtualTextureValid | ( | ) | const |
Call to enable/disable status update of LightMap encoding
| FVector4f FLightMap2D::AddVectors[NUM_STORED_LIGHTMAP_COEF] |
Bias value to apply to the coefficients.
| TObjectPtr<ULightMapTexture2D> FLightMap2D::AOMaterialMaskTexture |
| bool FLightMap2D::bShadowChannelValid[4] |
Tracks which of the 4 channels has valid texture data.
If true, update the status when encoding light maps
| FVector2D FLightMap2D::CoordinateBias |
The bias which is applied to the light-map coordinates before sampling the light-map textures.
| FVector2D FLightMap2D::CoordinateScale |
The scale which is applied to the light-map coordinates before sampling the light-map textures.
| FVector4f 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.
| FVector4f FLightMap2D::ScaleVectors[NUM_STORED_LIGHTMAP_COEF] |
A scale to apply to the coefficients.
| TObjectPtr<UShadowMapTexture2D> FLightMap2D::ShadowMapTexture |
| TObjectPtr<ULightMapTexture2D> FLightMap2D::SkyOcclusionTexture |
| TObjectPtr<ULightMapTexture2D> FLightMap2D::Textures[2] |
The textures containing the light-map data.
| TObjectPtr<ULightMapVirtualTexture2D > FLightMap2D::VirtualTextures[2] |
The virtual textures containing the light-map data.