From ba3c14c9df4e9b71240c43c5d1dde57f3bd54aed Mon Sep 17 00:00:00 2001 From: JordanSantiagoYT Date: Fri, 20 Sep 2024 00:27:19 -0400 Subject: [PATCH] yeah ok nvm removed rgbShader from unspawnnotes because idk --- source/Note.hx | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/source/Note.hx b/source/Note.hx index 0338354addd..46b78d10af0 100644 --- a/source/Note.hx +++ b/source/Note.hx @@ -41,8 +41,7 @@ typedef PreloadedChartNote = { wasSpawned:Bool, ignoreNote:Bool, lowPriority:Bool, - wasMissed:Bool, - rgbShader:Array + wasMissed:Bool } typedef NoteSplashData = { @@ -517,15 +516,9 @@ class Note extends FlxSprite _lastValidChecked = ''; } - public function updateRGBColors(?rColor:FlxColor, ?gColor:FlxColor, ?bColor:FlxColor) + public function updateRGBColors() { if (rgbShader == null && useRGBShader) rgbShader = new RGBShaderReference(this, initializeGlobalRGBShader(noteData, this)); - if (rColor != null || gColor != null || bColor != null) - { - rgbShader.r = rColor; - rgbShader.g = gColor; - rgbShader.b = bColor; - } else switch(ClientPrefs.noteColorStyle) { case 'Rainbow': @@ -616,7 +609,6 @@ class Note extends FlxSprite ignoreNote = chartNoteData.ignoreNote; multSpeed = chartNoteData.multSpeed; noteDensity = chartNoteData.noteDensity; - if (chartNoteData.rgbShader != null && chartNoteData.rgbShader[3] != null) useRGBShader = chartNoteData.rgbShader[3]; if (ClientPrefs.enableColorShader && useRGBShader) {