TexturePainterAPI
Color the texture in real time
Last updated | 8 months ago |
Total downloads | 2239 |
Total rating | 1 |
Categories | Libraries |
Dependency string | GTFOModding-TexturePainterAPI-1.0.2 |
Dependants | 11 other packages depend on this package |
This mod requires the following mods to function
BepInEx-BepInExPack_GTFO
BepInEx pack for GTFO. Preconfigured and includes Unity Base DLLs.
Preferred version: 3.2.0README
API
var texture = new PaintableMaskedTexture(Texture2D mainTexture); //This texture should contains full color info
texture.SetMainTexture(Texture2D newMainTexture);
//Color Mask Texture should be grayscale texture!
texture.SetMaskTexture(Texture2D mask1, Texture2D mask2, Texture2D mask3); //1, 2 Mask Overload exists
texture.SetTintColor(Color maskTint1, Color maskTint2, Color maskTint3); //1, 2 Color Overload exists
targetMat.mainTexture = texture.CurrentTexture; //This returns RenderTexture
texture.CreateCopy();