Merged with master
This commit is contained in:
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.graphics.*;
|
||||||
import arc.math.*;
|
import arc.math.*;
|
||||||
|
import arc.util.*;
|
||||||
import arc.util.noise.*;
|
import arc.util.noise.*;
|
||||||
|
|
||||||
/** Generates a scorch pixmap based on parameters. Thread safe, unless multiple scorch generators are running in parallel. */
|
/** 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;
|
scaled -= noise(Angles.angle(x, y, size/2, size/2))*nscl;
|
||||||
boolean present = scaled < 1.5f;
|
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;
|
return pix;
|
||||||
|
|||||||
Reference in New Issue
Block a user