Jump to content
  • Advertisement
Sign in to follow this  

double z buffer

This topic is 4854 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 am in com sci but I am no good at programming (to most people that would come across as an oxymoron, but people in computer science know that most of us can't program). I am implementing a double z buffer algorithm and in order to do this I need to, for every pixel, calculate its corresponding plane equation and find its min and max depth. Finding the equation is simple math, but I need three points to create that equation, how do I pass this to the fragment shader? I know that the primitive to which the current fragment belongs to was created in the previous phase in the pipeline, but is there a way I can access that primitive (face or set of vertices or whatever you wish to call it). thanks

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!