Description

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]

Steps to Reproduce
  1. Open the attached sample project
    [Link Removed]This project contains a material that uses the DistanceToNearestSurface node.
  2. Execute the r.DistanceFieldAO 0 command

Results:
The DistanceToNearestSurface node does not work.

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-305427 in the post.

0
Login to Vote

Duplicate
CreatedJul 16, 2025
ResolvedJul 28, 2025
UpdatedAug 12, 2025
View Jira Issue