mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-25 10:25:42 +07:00
Merged with master
This commit is contained in:
parent
a2706a80b1
commit
c23e923ffb
Binary file not shown.
Before Width: | Height: | Size: 128 KiB After Width: | Height: | Size: 1.9 MiB |
@ -2,6 +2,7 @@ package mindustry.graphics;
|
||||
|
||||
import arc.graphics.*;
|
||||
import arc.math.*;
|
||||
import arc.util.*;
|
||||
import arc.util.noise.*;
|
||||
|
||||
/** Generates a scorch pixmap based on parameters. Thread safe, unless multiple scorch generators are running in parallel. */
|
||||
@ -21,7 +22,7 @@ public class ScorchGenerator{
|
||||
scaled -= noise(Angles.angle(x, y, size/2, size/2))*nscl;
|
||||
boolean present = scaled < 1.5f;
|
||||
|
||||
if(present) pix.draw(x, y, color);
|
||||
pix.draw(x, y, Tmp.c1.set(Color.white).a(Mathf.clamp(1f + 1.5f - (float)scaled)));
|
||||
});
|
||||
|
||||
return pix;
|
||||
|
Loading…
Reference in New Issue
Block a user