diff options
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/misc')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/misc/DarkenShader.kt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/DarkenShader.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/DarkenShader.kt new file mode 100644 index 000000000..1a42522de --- /dev/null +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/DarkenShader.kt @@ -0,0 +1,17 @@ +package at.hannibal2.skyhanni.features.misc + +import at.hannibal2.skyhanni.utils.shader.Shader +import at.hannibal2.skyhanni.utils.shader.Uniform + +object DarkenShader : Shader("darken", "darken") { + + val INSTANCE: DarkenShader + get() = this + + var darknessLevel = 0f + + override fun registerUniforms() { + registerUniform(Uniform.UniformType.FLOAT, "darknessLevel") { darknessLevel } + } +} + |