Skip to content

Commit

Permalink
Fixing note colours being wrong in some octaves on debug view
Browse files Browse the repository at this point in the history
  • Loading branch information
CaiB committed Nov 26, 2023
1 parent c49636f commit e0e06c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ColorChord.NET/Outputs/Display/Shaders/ShinNFDebug.frag
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ void main()
{
int SectionHere = int(floor(TexCoord.x * BinCount));
float HeightHere = pow(texture(Texture, vec2((SectionHere + 0.5) / BinCount, 0.5)).r, 3.0) * ScaleFactor;
vec3 Colour = AngleToRGB(float(SectionHere) / BINS_PER_OCATVE, 1);
vec3 Colour = AngleToRGB(mod(float(SectionHere) / BINS_PER_OCATVE, 1.0), 1);
FragColor = vec4(step(abs(TexCoord.y), HeightHere) * Colour, 1.0);
}

0 comments on commit e0e06c0

Please sign in to comment.