Effects and shaders

    Use:

    You can then bind the effect as .

    Shaders are authored in the Xenko's shading language, which is an extension of . They provide true composition of modular shaders via , shader mixins and .

    Effects in Xenko use C#-like syntax to further combine shaders. They provide conditional composition of shaders to generate effect permutations.

    Xenko shaders are converted automatically to the target graphics platform — either plain HLSL for Direct3D, for OpenGL, or for Vulkan platforms.

    For mobile platforms, shaders are optimized by a GLSL optimizer to improve performance.