diff options
Diffstat (limited to 'shaders')
-rw-r--r-- | shaders/new.frag | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/shaders/new.frag b/shaders/new.frag index fa8a260..3537e26 100644 --- a/shaders/new.frag +++ b/shaders/new.frag @@ -5,5 +5,8 @@ varying vec4 color; void main(){ vec4 pixelColor = texture2D(sampler, vec2(texCoord.x, texCoord.y)); - gl_FragColor = pixelColor * color; + //TODO + if (pixelColor.w != 1.0f) + discard; + gl_FragColor = pixelColor * color; } |