FMeshRenderer

Class used as an interface for baking materials to textures using mesh/vertex-data

Windows
MacOS
Linux

References

Module

MaterialUtilities

Header

/Engine/Source/Developer/MaterialUtilities/Public/MeshRendering.h

Include

#include "MeshRendering.h"

Syntax

class FMeshRenderer

Remarks

Class used as an interface for baking materials to textures using mesh/vertex-data

Constructors

No constructors are accessible with public or protected access.

Functions

Name Description

Public function Static

bool

 

RenderMaterial

(
    FMaterialMergeData& InMaterialData,
    FMaterialRenderProxy* InMateri...,
    EMaterialProperty InMaterialPropert...,
    UTextureRenderTarget2D* InRend...,
    TArray< FColor >& OutBMP
)

Renders out textures for each material property for the given material, using the given mesh data or by using a simple tile rendering approach

Public function Static

bool

 

RenderMaterialTexCoordScales

(
    FMaterialMergeData& InMaterialData,
    FMaterialRenderProxy* InMateri...,
    UTextureRenderTarget2D* InRend...,
    TArray< FFloat16Color >& OutScales
)

Renders out texcoord scales