I’m trying to make a terrain with two blended textures, now my idea is to make two rendering passes, the first with per example stone texture, and de second with another texture (grass), and I want that the RGB values of the second pass be added to the RGB values of the first pass depending on a factor (F)
R(final) = R(stone)*0.8 + R(grass)*0.2
G(final) = G(stone)*0.8 + G(grass)*0.2
B(final) = B(stone)*0.8 + B(grass)*0.2
which are the DTS and SRC parameters in the glBlendFunc?