Sign in to follow this  
benbon

how to get the backgroud color in pixel shader?

Recommended Posts

You can't, in general.

The closest you can get is to render your scene into a render target, bind that target as a texture, and render again, this time reading from that texture.

What are you trying to accomplish?

Share this post


Link to post
Share on other sites
Quote:
Original post by jpetrie
You can't, in general.

The closest you can get is to render your scene into a render target, bind that target as a texture, and render again, this time reading from that texture.

What are you trying to accomplish?

Thank you,I see

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