Jump to content
  • Advertisement
Sign in to follow this  

Draw on texture in HLSL

This topic is 3271 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Im new to xna and dont understand some of it so bare with me :P i have a project where i need to draw a road on some terrain. i tried just creating some triangles with a road texture but it didnt work very well because the terrain would poke through in some places, so i decided the best approach would be to draw the road right onto the terrain. i tried setting the render target to a texture and drawing the terrain and road to that, and then setting the terrain texture to that texture... but it didnt work. I want to know if its possible to draw the road to the texture in the HLSL code, and if it is i would like to know how. Any help would be awesome!

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!