Jump to content
  • Advertisement
Sign in to follow this  

HLSL - rendering behind near clip plane

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

im trying to get something like this working: http://developer.download.nvidia.com/presentations/2007/gdc/RealTimeFluids.pdf im at the stage where if i go inside my volume, i cant render the volume effect corectly. now, im wondering how to get around the problem. Im thinking i will need to set the pixels depth manually to bring it in front of the near plane so it renders. So i've quickly tried this with no luck: DX10 BTW

struct PSOut
	float4	colour	: SV_Target;
	float	depth	: SV_Depth;



OUT.colour = volumeSample;
	OUT.depth = 0;

	return OUT;

this seem to have no effect. suggestions on how this may be done?

Share this post

Link to post
Share on other sites
that will still cause fragments behind the near plane to be clipped
but i could turn it off if needed

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!