Search code examples
graphicsraycasting

Ray Marching advantages over Rasterization


I'd like to know what's reason to use Ray Marching/Ray casting over rasterization? Is it better only in specific cases? Thanks for your answers.


Solution

  • Ray casting and rasterization are two totally different methods of rendering. Rasterization is designed to be very fast, and lighting is typically computed on a per-fragment basis in a fragment shader (or pixel shader). Ray casting (a type of ray tracing) actually simulates light rays in a sense, creating a more accurate render, with a much larger computation time.