delaunay mapgen 1st version

This commit is contained in:
2019-11-13 23:03:16 +03:00
22 changed files with 633 additions and 31 deletions

View File

@ -167,7 +167,7 @@ func (ps *precomputedShade) PrecomputeFovMap() {
//Bresanham lines / Raycast
var lineX, lineY float64
for i := 0; i < 720; i++ { // 1/2 of angles
dx := math.Sin(float64(i) / (float64(360) / math.Pi)) //1/2 of angles
dx := math.Sin(float64(i) / (float64(360) / math.Pi)) //1/2 of angle
dy := math.Cos(float64(i) / (float64(360) / math.Pi))
lineX = 0