Module |
|
Header |
/Engine/Source/Runtime/Engine/Classes/MeshVertexPainter/MeshVertexPainter.h |
Include |
#include "MeshVertexPainter/MeshVertexPainter.h" |
Source |
/Engine/Source/Runtime/Engine/Private/MeshVertexPainter/MeshVertexPainter.cpp |
static void PaintVerticesLerpAlongAxis
(
UStaticMeshComponent * StaticMeshComponent,
const FLinearColor & StartColor,
const FLinearColor & EndColor,
EVertexPaintAxis Axis,
bool bConvertToSRGB
)
Paints vertex colors on a mesh component lerping from the start to the end color along the specified axis.
Parameter |
Description |
---|---|
StaticMeshComponent |
The static mesh component to be painted |
StartColor |
The color to paint at the minimum bound |
EndColor |
The color to paint at the maximum bound |
Axis |
The mesh local space axis along which to lerp |
bConvertToSRGB |
Whether the vertex color should be converted to sRGB. |