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

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;