PDA

View Full Version : Shader transparancy not working with one half of mesh



MalaLal
03-24-2014, 07:28 AM
I've used the following to create alpha blending.

glEnable (GL_BLEND);
glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);

And have declared the following in the alpha blending.

void main ()
{
outColor = color;
outColor.a *= .5;
}


I've used Alpha blend to get the transparency working however it only seems to work from one side.

Not sure what the problem is, am new to programming and shading.

Link to see the picture

tonyo_au
03-26-2014, 05:48 PM
fo you have backface cull enabled?