So I’m trying to retrieve the distance field data of some mesh to use it as an SDF to generate a procedural mesh using marching cubes.
The point is to sample the texture using a position (X,Y,Z), but I can’t really seem to find a way to access that data.
FStaticMeshRenderData* Data = MeshLod->GetRenderData();
const FStaticMeshLODResources* LodRessource = Data->GetCurrentFirstLOD(0);
const FDistanceFieldVolumeData* SDF = LodRessource->DistanceFieldData;
I’ve tried searching through FStaticMeshLODResources and FDistanceFieldVolumeData but I’m kinda stuck at that point.
Thanks,
William