Description

When creating a Post Process material in 4.19 with a Custom expression that uses FScreenSpaceData, material editor is unable to compile, and material renders incorrectly. This does not happen in 4.18.

Steps to Reproduce
  1. In 4.19, Create a new Post Process Material, open it in material editor
  2. Create a Custom Material Expression
  3. Set up according to attached screen shot 
  4. Code:
    FScreenSpaceData ssd = GetScreenSpaceData(centerUV, false);
    float3 N = ssd.GBuffer.WorldNormal;
    return N;

Result: Warning message appears saying material has compilation errors, does not render correctly in viewport as shown in attached screen shot. 

Expected: See attached screen shots showing the exact same material setup in 4.18.

Have Comments or More Details?

There's no existing public thread on this issue, so head over toAnswerHub just mention UE-54530 in the post.

5
Login to Vote

Won't Fix
ComponentRendering
Affects Versions4.19
Target Fix4.19
CreatedJan 26, 2018
ResolvedJan 29, 2018
UpdatedApr 27, 2018