Hello,
im trying mask textrures but it blend colors, how fix it or exist other way ?
Code:glEnable(GL_BLEND); // Enable Blending Images['ground_dirt'].draw(5,5,0); // dirt texture glBlendFunc(GL_DST_COLOR,GL_ZERO); Images['transition01'].draw(5,5,0); // mask texture glBlendFunc(GL_ONE, GL_ONE); Images['ground_grass'].draw(5,5,0); // grass texture glDisable(GL_BLEND);
Bookmarks