Jump to content
  • Advertisement
Sign in to follow this  

Render to texture in a vertex shader

This topic is 4607 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

First off i'm useign a effect file for my shader rather than writing it withi nthe engine. is it posible to make a render to texture in a vertex shader through a fx file? how would this be done?

Share this post


Link to post
Share on other sites
Advertisement
The render target (for example, texture) is not explicitly specified in the .fx file. Instead, you have to add annotation to your fx file to tell your engine how to set the various render targets. Either make it a global annotation, or make it an annotation per pass. In your engine, get the annotations, and set the render target appropriately.

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!