Skip to content

Commit

Permalink
Update for new field params
Browse files Browse the repository at this point in the history
  • Loading branch information
jphsd committed Sep 9, 2024
1 parent 636f9fa commit 56859d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions random/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func MakeVectorField(md, d int) texture.VectorField {

// MakeSelect creates a new field from a vector field.
func MakeSelect(md, d int) texture.Field {
return texture.NewSelect(MakeVectorField(md, d+1), rand.Intn(3))
return texture.NewSelect(MakeVectorField(md, d+1), rand.Intn(3), 1)
}

// MakeDirection creates a new field from a vector field.
Expand All @@ -92,7 +92,7 @@ func MakeDirection(md, d int) texture.Field {

// MakeMagnitude creates a new field from a vector field.
func MakeMagnitude(md, d int) texture.Field {
return texture.NewMagnitude(MakeVectorField(md, d+1))
return texture.NewMagnitude(MakeVectorField(md, d+1), 1)
}

// MakeNormal creates a new vector field from a field.
Expand Down

0 comments on commit 56859d6

Please sign in to comment.