Answer the question
In order to leave comments, you need to log in
How to calculate polygon depth (z-buffer method)?
Hello. I need to z-buffer not for every pixel on the screen, but for polygons. Could you please explain how to calculate the depth of a polygon?
For example: There are several polygons (rectangles) and each has 4 vertices with some x, y, z coordinates, how to calculate the depth, for example, for a blue and red rectangle?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question