Sign in to follow this  
harshman_chris

XNA and HLSL Texturing Terrain.

Recommended Posts

harshman_chris    184
Hello, So I have a heightmap texture which I load in and draw, I now want to add texture to it. I have a colourMap which in the red channel contains a value between 1 and [maxTextures] that I have for this map. I am trying to find a way to be able to do this with XNA and HLSL and keep the performance high. Since I am using XNA, I am capped at SM3. I found this tutorial, but it is mostly theory and I have been unable to adapt it for XNA. http://www.gamedev.net/reference/articles/article2246.asp Any help would be great, pointing in the direction of tutorials would be even better. Chris Harshman

Share this post


Link to post
Share on other sites
Hiyar    130
http://www.gamedev.net/reference/articles/article2238.asp

For basic terrain texturing maybe this article is better to understand the theory and to adapt it for HLSL ...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this