Navigation
API > API/Plugins > API/Plugins/MeshPartitionEditor > API/Plugins/MeshPartitionEditor/FChannelTextureRenderer
Description
Builds the texture for the different bases contained in a modifier group and their associated modifiers. Will also update the MegaMesh's texture collection.
| Name | BuildTextureForSection |
| Type | function |
| Header File | /Engine/Plugins/Experimental/MeshPartition/Source/MeshPartitionEditor/Public/MeshPartitionChannelCollection.h |
| Include Path | #include "MeshPartitionChannelCollection.h" |
| Source | /Engine/Plugins/Experimental/MeshPartition/Source/MeshPartitionEditor/Private/MeshPartitionChannelCollection.cpp |
static Tasks::TTask < FSectionChannels > BuildTextureForSection
(
const FMeshData & InSectionMesh,
UObject * InOwner,
bool bInDownloadToAsset,
const MeshPartition::FChannelMap & InChannels,
float InTexelResolution
)
Parameters
| Name | Remarks |
|---|---|
| InSectionMesh | The Section mesh generated by the MeshPartition pipeline containing the Channel information that needs to be rasterized in the channel texture |
| InOwner | An optional owner for the texture generated (otherwise, it is the ChannelCollection). This is used for compiled section, where the texture generated is directly assigned to its section actor |
| bInDownloadToAsset | whether to download the mip data from video memory into the UTexture asset. Must be used for serialized compiled sections. |
| InChannels | Channel to attribute id mapping. |
| InTexelSize | worldspace size of a texel in the output channel textures. |