Transition to Framebuffer#blit

This commit is contained in:
Anuken
2020-06-10 21:07:21 -04:00
parent 6648a9ff1a
commit 2a9008f042
12 changed files with 25 additions and 28 deletions

View File

@@ -14,8 +14,8 @@ uniform vec2 u_texsize;
uniform float u_time;
uniform float u_dp;
uniform vec2 u_offset;
uniform vec4 u_shieldcolor;
varying vec4 v_color;
varying vec2 v_texCoord;
void main(){
@@ -32,7 +32,7 @@ void main(){
(texture2D(u_texture, T + vec2(0, step) * v).a > 0.0 || texture2D(u_texture, T + vec2(0, -step) * v).a > 0.0 ||
texture2D(u_texture, T + vec2(step, 0) * v).a > 0.0 || texture2D(u_texture, T + vec2(-step, 0) * v).a > 0.0)){
gl_FragColor = mix(v_color, vec4(1.0), si);
gl_FragColor = mix(u_shieldcolor, vec4(1.0), si);
}else{
if(color.a > 0.0){