Original Post
Hi
I want different textures on my terrain. Anywhere I have read that I can do this when I just draw the terrain twice like this:
I have tried this and the result wasn''t bad. But I can''t imagine, how this functions. Is the terrain really computed twice, what would be very slow?
lpD3DDevice->SetTexture(0,lpRock); Landscape->Render(lpD3DDevice); lpD3DDevice->SetRenderState(D3DRENDERSTATE_ALPHABLENDENABLE,TRUE); lpD3DDevice->SetTexture(0,lpGrass); Landscape->Render(lpD3DDevice); lpD3DDevice->SetRenderState(D3DRENDERSTATE_ALPHABLENDENABLE,FALSE); |