c++ - Shader transparancy not working with one half -


glenable (gl_blend); glblendfunc (gl_src_alpha, gl_one_minus_src_alpha); 

and used in fragment shader.

i've used alpha blend transparency working seems work 1 side.

not sure problem is, new programming , shading.

http://imgur.com/wdk4qjc link see picture

i think see 2 distant faces blending color darker.

maybe culling not activated.

face culling ability discard face drawing upon condition.

to achieve want, have discard faces not facing camera call backface culling. this:

glenablegl(gl_cull_face);  //(enable face culling) glcullface(gl_back);       //(discard faces) 

Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -