Browse Source

enhance target painting

temp
MMT 2 years ago
parent
commit
3fae474a1b
  1. 5
      target.fs

5
target.fs

@ -4,5 +4,8 @@ varying vec2 vTexCoord;
varying vec3 color;
void main()
{
gl_FragColor = vec4(color.x,color.y,color.z,texture2D(texture, vTexCoord).w);
if(texture2D(texture, vTexCoord).w == 0)
discard;
gl_FragColor = vec4(color.x,color.y,color.z,1);
}

Loading…
Cancel
Save