Fixed crash caused by invalid NinePatch sprites

This commit is contained in:
Anuken
2021-07-06 15:23:37 -04:00
parent 01a3c772e7
commit 017552f573
5 changed files with 9 additions and 7 deletions

View File

@@ -20,9 +20,9 @@ void main(){
vec4 color = texture2D(u_texture, c);
if(noise > 0.54 && noise < 0.68){
color.rgb *= 1.4;
color.rgb *= vec3(1.4);
}else if(!(noise > 0.40 && noise < 0.54)){
color.rgb *= 1.2;
color.rgb *= vec3(1.2);
}
gl_FragColor = color;