Shader Compiling

Is GlobalBeginCompileShader the recommended approach for compiling shaders packaged with plugins/modules, like the SlateElementPixelShader.hlsl in the StandaloneRenderer module?

Hey Nick. Bundling custom HLSL/GLSL shaders is not supported yet in plugins. NickP may be able to elaborate on that, probably. Its recommended that you create your own material assets instead and allow the material system’s shader compiler to take care of that for you. Later, we will support the ability to package “derived data” with plugins, which would allow you to distribute compiled shader code with your plugin binaries, if you so choose, to potentially avoid end-users having to recompile those on their end. That feature is still a work in progress.

Also, those Slate shader files you mentioned as only used by the StandaloneRenderer module, which is a special module that we use to allow Slate-based applications to draw UI even when the normal Unreal renderer is not available.

–Mike