Sign in to follow this  
Nick The Newbie

Reverse depth test using only HLSL in FxComposer?

Recommended Posts

I'm attempting to make a refraction shader that takes into account the distance to the farthest away surface in addition to the closest surface. Right now I'm rendering closest surface and closest surface normals to texture and plan to access them later. I'm using HLSL in nvidia fx composer 1.8. Is there any way to reverse the depth test in HLSL/fx composer so that I can capture the distance of the farthest away surfaces, but without having to create a program which does this, and then invokes my shader?

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