Commit 2c3f90a2 authored by Utkarsh Ayachit's avatar Utkarsh Ayachit
Browse files

BUG #15874: Fix texture blending to discard transparent pixels.

Fixes vtkTextureObject::CopyToFrameBuffer() to discard source fragments
with alpha <= 0.
parent a93eb846
...@@ -26,4 +26,8 @@ uniform sampler2D source; ...@@ -26,4 +26,8 @@ uniform sampler2D source;
void main(void) void main(void)
{ {
gl_FragData[0] = texture2D(source,tcoordVC); gl_FragData[0] = texture2D(source,tcoordVC);
if (gl_FragData[0].a <= 0.0)
{
discard;
}
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment