unreal.DynamicMeshVertexColorTransformMode

class unreal.DynamicMeshVertexColorTransformMode

Bases: EnumBase

Color Transform to apply to Vertex Colors when converting from internal DynamicMesh Color attributes (eg Color Overlay stored in FVector4f) to RHI Render Buffers (FColor).

Note that UStaticMesh assumes the Source Mesh colors are Linear and always converts to SRGB.

C++ Source:

  • Module: GeometryFramework

  • File: BaseDynamicMeshComponent.h

LINEAR_TO_SRGB: DynamicMeshVertexColorTransformMode

Assume Vertex Colors are in Linear space and transform to SRGB

Type:

1

NO_TRANSFORM: DynamicMeshVertexColorTransformMode

Do not apply any color-space transform to Vertex Colors

Type:

0

SRGB_TO_LINEAR: DynamicMeshVertexColorTransformMode

Assume Vertex Colors are in SRGB space and convert to Linear

Type:

2