I have a great many HLSL.fx shaders that I have written collected and purchased over the last 5 years.
I would like to make use of them as much as possible, but there doesn’t seem to be any porting advice as yet.
So far, I am aware that use of Custom Expressions are discouraged for performance and portability reasons.
I am also aware that multi-pass shaders are not an option, which is ok as most of my shaders are single-pass.
As such, I am wondering how I can reuse some of my 3rd party shaders within UE4.
Consider this NVidia Perlin Noise shader:
…and imagine you already have it working (in some other graphics engine) as a compilable .fx file.
How would one go about porting that PerlinNoise.fx code to UE4 for use as a material effect?
(a) Use UE4 material nodes & functions to replicate the .fx code?
(b) Use Custom Expressions? (come with caveats!)
(c) Use FVertexFactory? (no idea if they are appropriate let alone how to use them!)
(d) Custom Plugin? (if possible, a basic tutorial example would be helpful)
(e) USF shader approach?
I am not looking for a ‘perlin noise shader’. I am purely interested in the possible workflow for
[PixelShader.fx] → [Unreal Engine 4 material] so the generic process can be adapted for any shader.