This commit is contained in:
Anuken
2020-09-19 11:40:11 -04:00
parent b29c0ab401
commit e19e74cdc5
34 changed files with 155 additions and 131 deletions
+4 -6
View File
@@ -22,12 +22,10 @@ void main(){
float noise = (texture2D(u_noise, (coords) / NSCALE + vec2(btime) * vec2(-0.9, 0.8)).r + texture2D(u_noise, (coords) / NSCALE + vec2(btime * 1.1) * vec2(0.8, -1.0)).r) / 2.0;
vec4 color = texture2D(u_texture, c);
if(color.a > 0.1){
if(noise > 0.6){
color.rgb = S2;
}else if (noise > 0.54){
color.rgb = S1;
}
if(noise > 0.6){
color.rgb = S2;
}else if (noise > 0.54){
color.rgb = S1;
}
gl_FragColor = color;