-
Notifications
You must be signed in to change notification settings - Fork 2
Getting Started
gamrguy edited this page Apr 22, 2018
·
2 revisions
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.