mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-12-06 02:40:23 -08:00
arkycite recolor
This commit is contained in:
parent
b3dd7f4b8b
commit
e30d090a2e
6 changed files with 20 additions and 8 deletions
Binary file not shown.
|
Before Width: | Height: | Size: 275 B After Width: | Height: | Size: 273 B |
Binary file not shown.
|
Before Width: | Height: | Size: 496 B After Width: | Height: | Size: 502 B |
|
|
@ -1,9 +1,8 @@
|
||||||
#define HIGHP
|
#define HIGHP
|
||||||
|
|
||||||
//shades of slag
|
#define S1 vec4(96.0, 131.0, 66.0, 78.0) / 255.0
|
||||||
#define S2 vec3(89.0, 150.0, 62.0) / 255.0
|
#define S2 vec3(132.0, 169.0, 79.0) / 255.0
|
||||||
#define S1 vec3(112.0, 181.0, 81.0) / 255.0
|
#define S3 vec3(210.0, 221.0, 118.0) / 255.0
|
||||||
#define MINSHADE vec4(68.0, 118.0, 66.0, 255.0) / 255.0
|
|
||||||
|
|
||||||
#define NSCALE 170.0 / 2.0
|
#define NSCALE 170.0 / 2.0
|
||||||
#define DSCALE 160.0 / 2.0
|
#define DSCALE 160.0 / 2.0
|
||||||
|
|
@ -19,7 +18,7 @@ varying vec2 v_texCoords;
|
||||||
|
|
||||||
void main(){
|
void main(){
|
||||||
vec2 c = v_texCoords.xy;
|
vec2 c = v_texCoords.xy;
|
||||||
vec2 coords = vec2(c.x * u_resolution.x + u_campos.x, c.y * u_resolution.y + u_campos.y);
|
vec2 coords = (c * u_resolution) + u_campos;
|
||||||
|
|
||||||
vec4 orig = texture2D(u_texture, c);
|
vec4 orig = texture2D(u_texture, c);
|
||||||
|
|
||||||
|
|
@ -39,7 +38,7 @@ void main(){
|
||||||
|
|
||||||
if(noise > 0.85){
|
if(noise > 0.85){
|
||||||
if(color.g >= (S2).g - 0.1){
|
if(color.g >= (S2).g - 0.1){
|
||||||
color.rgb = S1;
|
color.rgb = S3;
|
||||||
}else{
|
}else{
|
||||||
color.rgb = S2;
|
color.rgb = S2;
|
||||||
}
|
}
|
||||||
|
|
@ -48,7 +47,7 @@ void main(){
|
||||||
}
|
}
|
||||||
|
|
||||||
if(orig.r > 0.01){
|
if(orig.r > 0.01){
|
||||||
color = max(MINSHADE, color);
|
color = max(S1, color);
|
||||||
}
|
}
|
||||||
|
|
||||||
gl_FragColor = color;
|
gl_FragColor = color;
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,7 @@ public class Liquids{
|
||||||
}};
|
}};
|
||||||
|
|
||||||
//TODO
|
//TODO
|
||||||
arkycite = new Liquid("arkycite", Color.valueOf("59963e")){{
|
arkycite = new Liquid("arkycite", Color.valueOf("84a94b")){{
|
||||||
flammability = 0.4f;
|
flammability = 0.4f;
|
||||||
viscosity = 0.7f;
|
viscosity = 0.7f;
|
||||||
}};
|
}};
|
||||||
|
|
|
||||||
|
|
@ -134,12 +134,23 @@ public class ErekirPlanetGenerator extends PlanetGenerator{
|
||||||
erase(spawnX, spawnY, 15);
|
erase(spawnX, spawnY, 15);
|
||||||
brush(pathfind(spawnX, spawnY, endX, endY, tile -> (tile.solid() ? 300f : 0f) + maxd - tile.dst(width/2f, height/2f)/10f, Astar.manhattan), 7);
|
brush(pathfind(spawnX, spawnY, endX, endY, tile -> (tile.solid() ? 300f : 0f) + maxd - tile.dst(width/2f, height/2f)/10f, Astar.manhattan), 7);
|
||||||
|
|
||||||
|
//arkycite
|
||||||
|
pass((x, y) -> {
|
||||||
|
|
||||||
|
if(noise(x + 300, y - x*1.6f + 100, 4, 0.81f, 86f, 1f) > 0.71f/* && floor == Blocks.yellowStone*/){
|
||||||
|
floor = Blocks.arkyciteFloor;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
distort(10f, 12f);
|
distort(10f, 12f);
|
||||||
distort(5f, 7f);
|
distort(5f, 7f);
|
||||||
|
|
||||||
//smooth out slag to prevent random 1-tile patches
|
//smooth out slag to prevent random 1-tile patches
|
||||||
median(3, 0.6, Blocks.slag);
|
median(3, 0.6, Blocks.slag);
|
||||||
|
|
||||||
|
//does arkycite need smoothing?
|
||||||
|
//median(3, 0.6, Blocks.arkyciteFloor);
|
||||||
|
|
||||||
pass((x, y) -> {
|
pass((x, y) -> {
|
||||||
float max = 0;
|
float max = 0;
|
||||||
for(Point2 p : Geometry.d8){
|
for(Point2 p : Geometry.d8){
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,8 @@ if(System.getenv("JITPACK") == "true") hasSdk = false
|
||||||
if(hasSdk){
|
if(hasSdk){
|
||||||
//hack: pretend the Android module doesn't exist when imported through IntelliJ
|
//hack: pretend the Android module doesn't exist when imported through IntelliJ
|
||||||
//why? because IntelliJ chokes on the new version of the Android plugin
|
//why? because IntelliJ chokes on the new version of the Android plugin
|
||||||
|
|
||||||
|
//UPDATE: it no longer chokes on AGP with the latest version, but instead gives a completely different error. brilliant.
|
||||||
if(!System.getProperty("jna.tmpdir")?.contains("JetBrains")){
|
if(!System.getProperty("jna.tmpdir")?.contains("JetBrains")){
|
||||||
include 'android'
|
include 'android'
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue