Skip to content

Commit

Permalink
Fix 5.2 compatibility for ray tracing
Browse files Browse the repository at this point in the history
  • Loading branch information
Koderz committed Jun 23, 2023
1 parent 006cdf7 commit a954bd7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#include "RealtimeMeshComponent.h"
#include "Materials/Material.h"
#include "PhysicsEngine/BodySetup.h"
//#include "TessellationRendering.h"
#include "PrimitiveSceneProxy.h"
#include "UnrealEngine.h"
#include "SceneManagement.h"
Expand Down Expand Up @@ -289,7 +288,9 @@ namespace RealtimeMesh
RayTracingInstance.InstanceTransforms.Add(LocalToWorld);

RayTracingInstance.Materials.Add(Batch);
#if ENGINE_MAJOR_VERSION == 5 && ENGINE_MINOR_VERSION < 2
RayTracingInstance.BuildInstanceMaskAndFlags(FeatureLevel);
#endif
OutRayTracingInstances.Add(RayTracingInstance);
},
GetUniformBuffer(),
Expand Down

0 comments on commit a954bd7

Please sign in to comment.