You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gamrguy edited this page Apr 22, 2018
·
6 revisions
IDye
The IDye interface, available within the ShaderLib.Dyes namespace, allows for easy creation of dye items that do not rely on a shader bound to their item ID. While ShaderLib will normally look for a bound shader when applying dyes, any modded dyes that implement IDye's DyeID property will use DyeID as the shader ID instead.
Using IDye is very simple to implement; here's an example: