Description

A user has reported that Materials that contain a custom HLSL node that has a Struct with a function declared inside of it results in the material failing to compile for GLSL, causing the Material to be replaced with the default Material on Android.

This is the provided HLSL code:

struct Test
{
float2 T()
{
return (float2(0,1));
}
};
return 0.2;
Steps to Reproduce
  1. Download the attached project
  2. Open the project and package for Android
  3. Install the packaged game onto an Android device and launch it
    Result: The cube in the level is using the default checkered material
    Expected: The cube uses the flat gray material that was set

Have Comments or More Details?

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

0
Login to Vote

Unresolved
ComponentRendering
Affects Versions4.214.224.23
Target Fix4.24
CreatedApr 29, 2019
UpdatedSep 10, 2019