Montre les coordonnées

This commit is contained in:
Antoine
2021-06-16 13:48:52 +02:00
parent 467086b3ba
commit cbec6fba9d
3 changed files with 22 additions and 4 deletions

View File

@ -15,12 +15,12 @@ void main(){
flash = sin(flash + time * 15);
flash = mix(flash, color, 0.5f);
flash.a = 1f;
vec4 tex = texture(texture1, texCoord);
if (tex.a == 0.0){
if (tex.a == 0.0 || (flash.x+ flash.y + flash.z)/3 <= (tex.x+ tex.y + tex.z)/3){
FragColor = tex;
} else{
FragColor = mix(tex, flash, 0.3f);
FragColor.a = 1.0f;
}
}