Skip to content
This repository has been archived by the owner on Feb 2, 2024. It is now read-only.

Commit

Permalink
darker distance
Browse files Browse the repository at this point in the history
  • Loading branch information
tsukinoko-kun committed Jan 8, 2024
1 parent da81198 commit ff53d81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/firstperson/raycaster.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ func renderWalls() error {
return err
}
// distant walls are darker
darkness := uint8(int32((depth+1)*255) / maxDepth)
darkness := uint8(int32((depth+1)*255) / 64)
err = core.Renderer().SetDrawColor(0, 0, 0, darkness)
if err != nil {
return err
Expand Down

0 comments on commit ff53d81

Please sign in to comment.