Fixed Pattern_StemSolid

This commit is contained in:
PS 2021-04-08 21:01:11 -10:00
parent 40014ca471
commit 7ff47ad445
1 changed files with 2 additions and 8 deletions

View File

@ -646,12 +646,6 @@ internal void
Pattern_StemSolid(led_buffer* Leds, led_buffer_range Range, assembly Assembly, r32 Time, gs_memory_arena* Transient, u8* UserData) Pattern_StemSolid(led_buffer* Leds, led_buffer_range Range, assembly Assembly, r32 Time, gs_memory_arena* Transient, u8* UserData)
{ {
blumen_lumen_state* BLState = (blumen_lumen_state*)UserData; blumen_lumen_state* BLState = (blumen_lumen_state*)UserData;
Time = Time * BLState->PatternSpeed;
phrase_hue Hue = BlumenLumen_GetCurrentHue(BLState, Assembly);
v4 C0 = RGBFromPhraseHue(Hue.Hue0);
v4 C1 = RGBFromPhraseHue(Hue.Hue1);
v4 C2 = RGBFromPhraseHue(Hue.Hue2);
pixel WhiteMask = V4ToRGBPixel(WhiteV4); pixel WhiteMask = V4ToRGBPixel(WhiteV4);
@ -662,8 +656,8 @@ Pattern_StemSolid(led_buffer* Leds, led_buffer_range Range, assembly Assembly, r
v2_strip Strip = Assembly.Strips[StripIndex]; v2_strip Strip = Assembly.Strips[StripIndex];
for (u32 i = 0; i < Strip.LedCount; i++) for (u32 i = 0; i < Strip.LedCount; i++)
{ {
v4 P = Leds->Positions[Strip.LedLUT[i]]; u32 LedIndex = Strip.LedLUT[i];
Leds->Colors[i] = WhiteMask; Leds->Colors[LedIndex] = WhiteMask;
} }
} }
} }