delaunay mapgen 1st version
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user