Skip to content

Getting Started

gamrguy edited this page Apr 22, 2018 · 2 revisions

Getting Started with ShaderLib

In order to start using ShaderLib, you have to tell ShaderLib to get things ready for you.
To do so, simply add this line to your Mod's Load function:

ShaderLib.ShaderLoader.RegisterMod(this);

That's it! Now you will be able to create GlobalShader and ModArmorShaderData classes, which ShaderLib will autoload for you (or not, if desired).

It is recommended to have the ShaderLib binary on hand to use as a reference while you code, so that you're certain of names, parameters, return types, etc.. This can be obtained from the git release downloads as ShaderLib.dll.

Clone this wiki locally