Description

When using "distance to nearest surface" node with WPO there are cases where the engine will shade the object incorrect. The attached project reproduces one of these scenarios.

It appears as though the distance field generated by the parent mesh (with the material applied) is interfering with the material's output.

Steps to Reproduce
  1. Open attached project
  2. Select the material instance named "Distance_Inst"
  3. Change the scalar param "cutoff" value to 0.1

RESULT
The mesh turns dark and a large shadow is cast.

EXPECTED
The mesh stays lit and a shadow is cast that matches the visible geometry.

Have Comments or More Details?

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

4
Login to Vote

Won't Fix
ComponentUE - Graphics Features
Affects Versions4.18
CreatedJan 20, 2017
ResolvedAug 18, 2021
UpdatedAug 18, 2021