Download

Help with HLSLMaterialTranslator and generated HLSL code

Not sure if this is the appropriate place to post this question, if not my apologies.
I am trying to tackle getting unreal’s hlsl shaders into Maya for previewing.

I have already seen that it is possible to copy out the hlsl for materials created with the editor.
I am assuming given access to all the usf includes this is usable hlsl code outside of unreal.
Tried setting up an hlsl node in Maya only to run into issues with the include for “UniformBuffers/Material.usf”.
No where in the engine’s shader directory can this include be located.

I am hoping to avoid having to do some deep diving through the source to find out how UniformBuffers/Material.usf is used.

Has any one done anything like this before that would be willing to share information on this?