Fixed the wierd wall overlap

This commit is contained in:
Sasha Koshka
2023-02-21 17:57:52 -05:00
parent 20fa445cdd
commit ce1d938f7a
2 changed files with 17 additions and 9 deletions

View File

@@ -130,7 +130,7 @@ func (element *Raycaster) drawAll () {
shade := 1.0
if horizontal {
shade *= 0.7
shade *= 0.8
}
shade *= 1 - distance / float64(element.renderDistance)
if shade < 0 { shade = 0 }