arkycite recolor

This commit is contained in:
Anuken
2021-11-30 22:52:33 -05:00
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

View File

@ -1,9 +1,8 @@
#define HIGHP
//shades of slag
#define S2 vec3(89.0, 150.0, 62.0) / 255.0
#define S1 vec3(112.0, 181.0, 81.0) / 255.0
#define MINSHADE vec4(68.0, 118.0, 66.0, 255.0) / 255.0
#define S1 vec4(96.0, 131.0, 66.0, 78.0) / 255.0
#define S2 vec3(132.0, 169.0, 79.0) / 255.0
#define S3 vec3(210.0, 221.0, 118.0) / 255.0
#define NSCALE 170.0 / 2.0
#define DSCALE 160.0 / 2.0
@ -19,7 +18,7 @@ varying vec2 v_texCoords;
void main(){
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);
@ -39,7 +38,7 @@ void main(){
if(noise > 0.85){
if(color.g >= (S2).g - 0.1){
color.rgb = S1;
color.rgb = S3;
}else{
color.rgb = S2;
}
@ -48,7 +47,7 @@ void main(){
}
if(orig.r > 0.01){
color = max(MINSHADE, color);
color = max(S1, color);
}
gl_FragColor = color;

View File

@ -57,7 +57,7 @@ public class Liquids{
}};
//TODO
arkycite = new Liquid("arkycite", Color.valueOf("59963e")){{
arkycite = new Liquid("arkycite", Color.valueOf("84a94b")){{
flammability = 0.4f;
viscosity = 0.7f;
}};

View File

@ -134,12 +134,23 @@ public class ErekirPlanetGenerator extends PlanetGenerator{
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);
//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(5f, 7f);
//smooth out slag to prevent random 1-tile patches
median(3, 0.6, Blocks.slag);
//does arkycite need smoothing?
//median(3, 0.6, Blocks.arkyciteFloor);
pass((x, y) -> {
float max = 0;
for(Point2 p : Geometry.d8){

View File

@ -24,6 +24,8 @@ if(System.getenv("JITPACK") == "true") hasSdk = false
if(hasSdk){
//hack: pretend the Android module doesn't exist when imported through IntelliJ
//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")){
include 'android'
}