Reputation: 177
My model viewer in C# is having issues with textures. if i draw a texture that is transparent, instead of showing the model through the transparent part and just putting a texture over the model, it completely covers the model and makes the model invisible there. what im saying is the model wont show through transparent textures and it should
Upvotes: 0
Views: 1112
Reputation: 2794
You need to enable alpha blending explicitly:
GL.Enable(EnableCap.Blend);
GL.BlendFunc(BlendingFactorSrc.SrcAlpha, BlendingFactorDest.OneMinusSrcAlpha);
Upvotes: 2