user3441843
user3441843

Reputation: 177

OpenTK C# model wont show through alpha transparency

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

Answers (1)

The Fiddler
The Fiddler

Reputation: 2794

You need to enable alpha blending explicitly:

GL.Enable(EnableCap.Blend);
GL.BlendFunc(BlendingFactorSrc.SrcAlpha, BlendingFactorDest.OneMinusSrcAlpha);

Upvotes: 2

Related Questions