Navigation
API > API/Runtime > API/Runtime/GeometryFramework > API/Runtime/GeometryFramework/Components
References
| Module | GeometryFramework |
| Header | /Engine/Source/Runtime/GeometryFramework/Public/Components/MeshRenderBufferSet.h |
| Include | #include "Components/MeshRenderBufferSet.h" |
Syntax
struct FMeshRenderBufferSetConversionUtil
Remarks
Parameters and accompanying functions used to build and update FMeshRenderBuffers from a dynamic mesh. For usage, see FBaseDynamicMeshSceneProxy or the simple converter below FDynamicMeshComponentToMeshRenderBufferSet
Note: This is low-level and methods assume, but do not check, all input data is consistent (e.g. that all overlays, the triangle count and enumerator are all consistent with the provided mesh. )
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bApplyVertexColorRemapping | If true, VertexColorRemappingFunc is called on Vertex Colors provided from Mesh to remap them to a different color | |
| bool | bIgnoreVertexColors | If true, vertex colors on the FDynamicMesh will be ignored | |
| bool | bUsePerTriangleColor | If true, a per-triangle color is used to set vertex colors | |
| bool | bUsePerTriangleNormals | If true, a facet normals are used instead of mesh normals | |
| bool | bUseSecondaryTriBuffers | If true, populate secondary buffers using SecondaryTriFilterFunc | |
| EDynamicMeshVertexColorTransformMode | ColorSpaceTransformMode | Color Space Transform/Conversion applied to Vertex Colors provided from Mesh Color Overlay Attribute Color Space Conversion is applied after any Vertex Color Remapping. | |
| FColor | ConstantVertexColor | Constant color assigned to vertices if no other vertex color is specified | |
| TFunction< FColor(const FDynamicMesh3 *, int)> | PerTriangleColorFunc | Per-triangle color function. Only called if bUsePerTriangleColor=true | |
| TUniqueFunction< bool(const FDynamicMesh3 *, int32)> | SecondaryTriFilterFunc | Filter predicate for secondary triangle index buffer. Only called if bUseSecondaryTriBuffers=true | |
| TUniqueFunction< void(FVector4f &)> | VertexColorRemappingFunc | Vertex color remapping function. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FColor | GetOverlayColorAsFColor
(
const FDynamicMeshColorOverlay* ColorOverlay, |
Get the overlay color the FColor, respecting the ColorSpaceTransformMode utilizing the VertexColorRemappingFunc if requested. | |
| void | InitializeBuffersFromOverlays
(
FMeshRenderBufferSet* RenderBuffers, |
Initialize rendering buffers from given attribute overlays. | |
| void | InitializeBuffersFromOverlays
(
FMeshRenderBufferSet* RenderBuffers, |
Initialize rendering buffers from given attribute overlays. | |
| void | RecomputeRenderBufferTriangleIndexSets
(
FMeshRenderBufferSet* RenderBuffers, |
RecomputeRenderBufferTriangleIndexSets re-sorts the existing set of triangles in a FMeshRenderBufferSet into primary and secondary index buffers. | |
| void | UpdateSecondaryTriangleBuffer
(
FMeshRenderBufferSet* RenderBuffers, |
------------FMeshRenderBufferSetConversionUtil --------------- /// | |
| void | UpdateVertexBuffersFromOverlays
(
FMeshRenderBufferSet* RenderBuffers, |
Update vertex positions/normals/colors of an existing set of render buffers. | |
| void | UpdateVertexUVBufferFromOverlays
(
FMeshRenderBufferSet* RenderBuffers, |
Update vertex uvs of an existing set of render buffers. |