automated snapshot
This commit is contained in:
7
field.go
7
field.go
@@ -2,6 +2,7 @@ package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"math"
|
||||
rl "github.com/gen2brain/raylib-go/raylib"
|
||||
"github.com/ojrac/opensimplex-go"
|
||||
)
|
||||
@@ -123,3 +124,9 @@ func (fl *FieldLayer) IsDirty() bool {
|
||||
return fl.dirty
|
||||
}
|
||||
|
||||
|
||||
type SinXYField struct {}
|
||||
|
||||
func (f *SinXYField) Get(x, y float32) float32 {
|
||||
return float32(math.Sin(float64(x * y)))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user