Possible to use my own pure HLSL and GLSL shader code?

Up.

I tried to find some doc about the workflow but found nothing. I am able to get UE to compile a shader, to create a callback class (with IMPLEMENT_SHADER_TYPE & co), but I don’t know how to link everything:

  • I have some shader callbacks classes (vertex & pixel shaders for the start, I’ll be adding a geometry shader when the rest will be working)
  • I have a VertexDeclaration render resource
  • I have a mesh following that declaration

I tried without a VertexFactory… to no avail.

So, how do I render the mesh using my shaders ?