Hi,
I have a custom FPrimitiveSceneProxy class and I am implementing GetDynamicMeshElements method.
I would like it to draw a shaded box so I have the following lines:
auto MaterialProxy = GEngine->ShadedLevelColorationUnlitMaterial->GetRenderProxy(IsSelected(), IsHovered());
auto ColoredMaterialProxy = new FColoredMaterialRenderProxy(MaterialProxy, DrawColor);
Collector.RegisterOneFrameMaterialProxy(SolidMaterialInstance);
GetBoxMesh(LocalToWorld, BoxExtents, ColoredMaterialProxy, SDPG_World, ViewIndex, Collector);
This draws the cube correctly, however if I change the render proxy to use GEngine->EditorBrushMaterial instead it stops drawing.
I guess I don’t understand why that’s the case, and would appreciate some advice.
Thank you!