You are viewing a potentially older version of this package.
View all versions.
![GTFOModding-TexturePainterAPI-1.0.1 icon](https://gcdn.thunderstore.io/live/repository/icons/GTFOModding-TexturePainterAPI-1.0.1.png.128x128_q95.png)
TexturePainterAPI
Color the texture in real time
Date uploaded | 2 years ago |
Version | 1.0.1 |
Download link | GTFOModding-TexturePainterAPI-1.0.1.zip |
Downloads | 1031 |
Dependency string | GTFOModding-TexturePainterAPI-1.0.1 |
This mod requires the following mods to function
![BepInEx-BepInExPack_GTFO-3.2.0 icon](https://gcdn.thunderstore.io/live/repository/icons/BepInEx-BepInExPack_GTFO-3.2.0.png.64x64_q95.png)
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();