Defining a function in a struct in a custom node works on Windows but not Android. Would appreciate a workaround.
I think I have run into a bug with the material Custom HLSL node. When defining a function inside a struct as shown at https://forums.unrealengine.com/development-discussion/rendering/113855-extending-custom-hlsl-custom-expressions , the material works, compiles and runs fine in a standalone Windows built. However, when I choose to launch the program to Android (4.4.4 GLSL_ES2) the compilation fails. It appears as though one can still define the struct as long as one doesn't define a function inside.
Does anyone please know of a workaround to still define a function inside of a 'custom' material node that does work for Android?
Sample code that fails on Android but works on Windows:
Any help would be greatly appreciated.
Follow this question
Once you sign in you will be able to subscribe for any updates here