문제

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

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top