Friday 29 June 2012
Terrain With Road Map
I know, how many times can a guy extend a terrain class!!!!? Lots I guess, this extension to the class and shader adds another map image that I call a road map. As you can guess this image holds a map of where I want to draw roads on my terrain. It is made up of four colors, Black (no road), Red (road texture 0), Blue (road texture 1) and Green (road texture 2).
I have extended the vertex element to hold another vector 4 for the "weights" of each road type, I have not used the W of the Vector and have it there for now as an extra info element (not found a use for it yet, guess I could add another road texture)
I will upload the source once I have tidied up the code. As ever, here are some shots...
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment