-1

I'm studying how scanline algorithms work and I'm wondering whether to determine the closest hit per each pixel a ray is shooted like ray tracing algorithms and, in that case, if bounding boxes are used to determine if there's an intersection or not

Marco A.
  • 42,082
  • 25
  • 129
  • 240

1 Answers1

3

No, OpenGL is not a ray tracer. For depth testing you would typically use a depth buffer (check Wikipedia).

Community
  • 1
  • 1
Andreas Haferburg
  • 4,921
  • 2
  • 33
  • 58