Para cada raio lançado temos que calcular a direção do mesmo para iterar as posições deste raio e encontrar alguma parede. A posição inicial do raio começa na posição do jogador e segue adiante em ...
// Variant on Draw() that takes fDepth and the depth buffer into account. // Pixel col is only drawn if fDepth is less than the depth buffer at that screen location (in which case the depth buffer is ...