Advertisement Jump to content
Sign in to follow this  

Outputting a texture from an effect

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

Hi everyone,


I can use shaders/effects to render 3D objects, but I now want to use them to edit textures only. i.e. I want to create a shader which will take a texture as an input, apply an effect to it (for example, monochrome, blur, etc...) and will then output the final result as another texture. Are there any good tutorials on how to use shaders like this?


I should also say that I'm not looking to render the texture to the screen, I just want to apply an effect to it so that I can then sample it in my main shader.



Share this post

Link to post
Share on other sites
To do this, you create a new texture that is a render-target, bind the render-target, then draw a quad that fills the screen (with your shader and input texture also bound).
A common use for this is post-processing, so tutorials about post-processing might help.
The details will vary depending in which version of D3D you're using.

Share this post

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

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. 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!