diff options
author | J10a1n15 <45315647+j10a1n15@users.noreply.github.com> | 2024-06-30 12:40:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-30 12:40:10 +0200 |
commit | 4a55a7d4d8c3551cc4cfa3bd82867579494e3c70 (patch) | |
tree | 420f2cca39de625307d5356f5a01635071c8b42a /src/main/java/at/hannibal2/skyhanni/features | |
parent | 2e93920ab64bacfc428cf8bf040a2b10b6d9f2f8 (diff) | |
download | skyhanni-4a55a7d4d8c3551cc4cfa3bd82867579494e3c70.tar.gz skyhanni-4a55a7d4d8c3551cc4cfa3bd82867579494e3c70.tar.bz2 skyhanni-4a55a7d4d8c3551cc4cfa3bd82867579494e3c70.zip |
Backend: Enabling Shader with Enum (#2035)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/chroma/ChromaShaderManager.kt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/chroma/ChromaShaderManager.kt b/src/main/java/at/hannibal2/skyhanni/features/chroma/ChromaShaderManager.kt index db6e06d25..ffded8099 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/chroma/ChromaShaderManager.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/chroma/ChromaShaderManager.kt @@ -33,7 +33,7 @@ object ChromaShaderManager { private fun enable(chromaType: ChromaType) { if (!chromaEnabled) { chromaEnabled = true - ShaderManager.enableShader(chromaType.shaderName) + ShaderManager.enableShader(chromaType.shader) } } @@ -45,14 +45,14 @@ object ChromaShaderManager { } } -enum class ChromaType(val shaderName: String) { +enum class ChromaType(val shader: ShaderManager.Shaders) { /** * See [StandardChromaShader] */ - STANDARD("standard_chroma"), + STANDARD(ShaderManager.Shaders.STANDARD_CHROMA), /** * See [TexturedChromaShader] */ - TEXTURED("textured_chroma") + TEXTURED(ShaderManager.Shaders.TEXTURED_CHROMA) } |