The new custom expression feature that added multiple outputs and a material attributes output type seems incredibly useful for more efficient shader code. I’ve been looking around, even in the engine source, and can’t find any information on how to use it - how do you return the multiple outputs in the format it wants or define and modify the FMaterialAttributes struct to be returned? I’ve tried messing around with it but it keeps returning {0, 0, 0, 0} for all the extra outputs other than the first return output. The first return output is as intended.
An example of the custom expr code is
#include ".../Unreal Projects/ShaderTests/Content/A.usf" return 0;