Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
jphsd committed Nov 16, 2024
1 parent e33865e commit 4aa133b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions surface/cmd/bumps.go
Original file line number Diff line number Diff line change
@@ -27,7 +27,7 @@ func main() {
//nm := texture.DefaultNormal

// directional lights
lights := []surface.Directional{
lights := []surface.Light{
surface.NewDirectional(col.White, []float64{1, 1, 1}),
}

@@ -52,7 +52,7 @@ func main() {
rvals := []float64{0, 0.01, 0.05, 0.1, 0.3, 0.5, 0.7, 0.9, 1}
for i, r := range rvals {
material.Roughness = r
img := texture.NewRGBA(width, height, surf, 0, 0, 1, 1)
img := texture.NewTextureRGBA(width, height, surf, 0, 0, 1, 1, false)
gi.SaveImage(img, fmt.Sprintf("bumps%d", i))
}
}

0 comments on commit 4aa133b

Please sign in to comment.