Home > Software engineering >  How Opengl mix texture and noise?
How Opengl mix texture and noise?

Time:11-15

I generate noise (such as fog, gray level), who wants to put his stick on the texture image,
1, use the direct additive, will cause the entire texture turned white;
2, use the mix blend, found the texture will be some dark places;
I am using GLFW,
I refer to a code, it is directly using the alpha channel of stacking, but it seems to be the black background of the GLFW window directly to the image texture, and then make noise to stick in the shader, that I also don't know how to make, for the great god give advice or comments!!
  • Related