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 to Questions & Answers just mention UE-73398 in the post.

0
Login to Vote

Won't Fix
ComponentUE - Graphics Features
Affects Versions4.214.224.23
CreatedApr 29, 2019
ResolvedAug 27, 2021
UpdatedAug 27, 2021