How would I inject a custom fog shader?

Hi,
Id like to inject my own fog shader into unreal, is that possible?

can you give a little more details:

  • is this an application that has already been compiled/Cooked/packaged?
  • are you asking how to take an existing shader script and convert that into an Unreal shader?
  • are you asking how to get a shader in the editor from say texture files (I can answer that directly bellow)

a “shader” under Unreal is typically just the result of compiling a Material blueprint, so as long as this is not a compiled/Cooked/packaged application then sure if you can make it as a Material you can make it into a shader, and then any Material index that uses that Material will have that generated shader script run on it.

Sure. Essentially, I want to create my own version of the “height fog” that is in unreal.
In the past I have done this via post-processing, and also via transparent shaders on meshes, however these two methods have their own limitations/issues.