Montre les coordonnées
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user