Skip to content

Custom Shaders

tobspr edited this page Oct 15, 2015 · 16 revisions

Default Shaders

In case you do not need any special features, you can just use the Default Shader, which is applied to render by default. Your object should have the textures and materials applied as described in Exporting from Blender. The default shader will extract those values and output them.

Custom Shaders

Shader Requirements

The Pipeline uses Physically Based Shading. Each shader has to output 4 constraints: metallic, roughness, specular, and basecolor. You can find a good explanation of them at the documentation of the UnrealEngine 4 here.

Using the Effect System

Most desired effects can be implemented using the Effect System, you should use it whenever possible. The effect system has the advantage that your effects do not get outdated with newer pipeline versions.

Creating your own Shaders

In some rare cases you might want to have your own shader, in that case you will have to copy the functionality from the default shader templates (Found at Shaders/Templates/). This is quite a bunch of work, and should only be done if its really required! Feel free to contact me if you need any help with this.