Skip to content

Commit

Permalink
yeah ok nvm
Browse files Browse the repository at this point in the history
removed rgbShader from unspawnnotes because idk
  • Loading branch information
JordanSantiagoYT committed Sep 20, 2024
1 parent 75a1efa commit ba3c14c
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions source/Note.hx
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ typedef PreloadedChartNote = {
wasSpawned:Bool,
ignoreNote:Bool,
lowPriority:Bool,
wasMissed:Bool,
rgbShader:Array<Dynamic>
wasMissed:Bool
}

typedef NoteSplashData = {
Expand Down Expand Up @@ -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':
Expand Down Expand Up @@ -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)
{
Expand Down

0 comments on commit ba3c14c

Please sign in to comment.