I want to render a scene and blend the material color with the texture. i am using programmable pipeline and GLSL, when the function texture() is called, all the portion of the meshes wish dont have texture become transparent. (even if i dont use the vec4 in the final fragColor)
look in the screeshots below, in the first image i have only the material color, in the second the applied texture, but the faces with only material color become transparent..
in my fragment shader, i have something like that:
vec4 tex = texture(texsampl,fTexCoord);
fFragColor = ambient + (diffuse*tex) + specular;