CropUnmappedTexels

Calculates the minimum rectangle that encompasses all mapped texels.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/LightMap.h

Include

#include "LightMap.h"

Syntax

template<class TMappingData>
void CropUnmappedTexels
(
    const TMappingData & MappingData,
    int32 SizeX,
    int32 SizeY,
    FIntRect & CroppedRect
)

Remarks

Calculates the minimum rectangle that encompasses all mapped texels.

Parameters

Parameter

Description

MappingData

Array of lightmap/shadowmap texels

SizeX

Number of texels along the X-axis

SizeY

Number of texels along the Y-axis

CroppedRect

[out] Upon return, contains the minimum rectangle that encompasses all mapped texels

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss