Jump to content
  • Advertisement
Sign in to follow this  
Nick The Newbie

Reverse depth test using only HLSL in FxComposer?

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

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
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!