Uniform folding is not working with material parameter collections along with one additional unnecessary instruction generated. 

Found in 4.22 CL# 7053642, 4.23 CL# 8386587, 4.24 CL# 8748719


Steps to Reproduce
  1. Open the Editor
  2. Create a material like in the attached screenshot
  3. Set the static s-w-i-t-c-h to True and record the instruction count
  4. Set the static s-w-i-t-c-h to False and record the instruction count

Material network with material parameter collection in it gives 41 instructions. Material network with scalar parameter in it gives 33 instructions.

Both material networks should be compiled to 32 instructions.

Have Comments or More Details?

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

Login to Vote

Affects Versions4.224.234.24
CreatedSep 19, 2019
UpdatedOct 16, 2019