Original Post
Hello all guys out there,
I''m currently trying to program a 3d landscape engine. All rendering does well so far - except to the texturing. My engine does the following job: Reads a height-map and creates vertices, normals and diffuse parameters.
The problem: I have 2 textures, and I want them to blend into one another via the diffuse parameters. But if I try to do that, I''m confusing about the SetTextureStageState() function.
I don''t know how to set D3DTOP_COLOROP and _ALPHAOP and so on to do this job. I''d really be happy about help, because I looked in "Inside Direct3D" (MS Press) and 2 other 3D books without getting help.
Thanks,
Michi