float rockPercentage = 0.25 //amount to go for rock float grassPercentage = 0.75 //amount to go for grass float snowPercentage = 0 //amount to go for snow float4 snow = snowTex.Sample(texcoords); //the pixel colour of the snow texture float4 grass = grassTex.Sample(texcoords); //the pixel colour of the grass texture float4 rock = rockTex.Sample(texcoords); // the pixel colour of the rock texture float4 colour = snow * snowPercentage + rock * rockPercentage + grass * grassPercentage;
Then the pixel colour will be 0% snow, 25% rock and 75% grass.
Do the same with the normal maps for a nice blend of those too.
EDIT: commented it up