feat: polish game HUD scoring and results
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user