The problem seems to be that the bUsesGlobalDistanceField flag in the ShouldPrepareGlobalDistanceField() function checks for usage on the material, but it doesn't seem to take effect.
The material uses the DistanceToNearestSurface node as shown below.
[Image Removed]
r.DistanceFieldAO 1
[Image Removed]
r.DistanceFieldAO 0
[Image Removed]
Results:
The DistanceToNearestSurface node does not work.
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-305427 in the post.
0 |
Component | UE - Rendering Architecture - Materials |
---|---|
Affects Versions | 5.6 |
Created | Jul 16, 2025 |
---|---|
Resolved | Jul 28, 2025 |
Updated | Aug 12, 2025 |