trail alpha adjustments

This commit is contained in:
yugecin 2018-10-26 00:28:24 +02:00
parent 0a6412e03f
commit 3debd40aec
No known key found for this signature in database
GPG Key ID: 2C5AC035A7068E44

View File

@ -43,7 +43,7 @@ public class ReplayCursor
public void drawTrail(float trailw2, float trailh2, float txtw, float txth) public void drawTrail(float trailw2, float trailh2, float txtw, float txth)
{ {
float alpha = 0f; float alpha = 0f;
float alphaIncrease = .5f / trail.size; float alphaIncrease = .4f / trail.size;
for (Trailpart p : trail) { for (Trailpart p : trail) {
alpha += alphaIncrease; alpha += alphaIncrease;
GL11.glColor4f(filter.r, filter.g, filter.b, alpha); GL11.glColor4f(filter.r, filter.g, filter.b, alpha);