aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/chroma/TexturedChromaShader.kt
blob: 26417d8dcd275c84fd767c4c69d2da31ca1053f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package at.hannibal2.skyhanni.features.chroma

/**
 * This chroma type is used for GUI elements with textures, that includes text,
 * any assets from Minecraft or from the mod, etc...
 *
 * **Usage:**
 *
 * If you want to use chroma for text see [FontRendererHook][at.hannibal2.skyhanni.mixins.hooks.FontRendererHook.setupChromaFont]
 *
 * ```
 *      ChromaShaderManager.begin(ChromaType.TEXTURE)
 *      // draw GUI element here
 *      ChromaShaderManager.end()
 * ```
 */
object TexturedChromaShader : ChromaShader("textured_chroma", "textured_chroma") {
    val INSTANCE: TexturedChromaShader
        get() = this
}