You are viewing a potentially older version of this package. View all versions.
GTFOModding-TexturePainterAPI-1.0.1 icon

TexturePainterAPI

Color the texture in real time

Date uploaded a year ago
Version 1.0.1
Download link GTFOModding-TexturePainterAPI-1.0.1.zip
Downloads 1014
Dependency string GTFOModding-TexturePainterAPI-1.0.1

This mod requires the following mods to function

BepInEx-BepInExPack_GTFO-3.2.0 icon
BepInEx-BepInExPack_GTFO

BepInEx pack for GTFO. Preconfigured and includes Unity Base DLLs.

Preferred version: 3.2.0

README

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();