Hey,
is this still working?
I am trying to import some custom files as described:
placing the .hlsl file in Engine\Shaders and using relative path, but I am getting this issue:
if I name it .hlsl I get:
[SM5] (): Extension on virtual shader source file name “/Engine/Generated/test_struct.hlsl” is wrong. Only .usf or .ush allowed.
I try to rename it:
[SM5] /Engine/Generated/Material.ush(1428): error: Can’t open include file “test_struct.ush” include “test_struct.ush” from /Engine/Private/BasePassVertexCommon.ush: 9: include “/Engine/Generated/Material.ush” from /Engine/Private/BasePassVertexShader.usf: 7: include “BasePassVertexCommon.ush”
[SM5] /Engine/Generated/Material.ush(1428): error: Can’t open include file “test_struct.ush” include “test_struct.ush” from /Engine/Private/BasePassPixelShader.usf: 9: include “/Engine/Generated/Material.ush”
[SM5] /Engine/Generated/Material.ush(1428): error: Can’t open include file “test_struct.ush” include “test_struct.ush” from /Engine/Private/ShadowDepthVertexShader.usf: 12: include “/Engine/Generated/Material.ush”
[SM5] /Engine/Generated/Material.ush(1428): error: Can’t open include file “test_struct.ush” include “test_struct.ush” from /Engine/Private/ShadowDepthPixelShader.usf: 12: include “/Engine/Generated/Material.ush”
Any suggestions? Thanks ![]()