feat: polish game HUD scoring and results

This commit is contained in:
2026-05-29 00:32:21 +09:00
parent c4330aa544
commit b46ccddbdb
14 changed files with 768 additions and 646 deletions
+7 -1
View File
@@ -14,8 +14,9 @@ namespace VRBeats
public void Construct(Color c)
{
float visibilityMultiplier = IsBlueDominant(c) ? 1.6f : 1.0f;
materialBindings.SetUseEmmisiveIntensity(false);
materialBindings.SetEmmisiveColor(c * glowEffect);
materialBindings.SetEmmisiveColor(c * glowEffect * visibilityMultiplier);
PlayAnimation();
}
@@ -35,6 +36,11 @@ namespace VRBeats
}).SetOwner(gameObject); ;
}
private static bool IsBlueDominant(Color color)
{
return color.b > color.r && color.b >= color.g;
}
}
}