Fix build

This commit is contained in:
Milan Nikolic 2019-11-25 03:48:35 +01:00
parent 735cd25396
commit ce0030eef2
No known key found for this signature in database
GPG key ID: 9229D0EAA3AA4E75

View file

@ -52,7 +52,8 @@ func main() {
dwarf := rl.LoadModel("dwarf.obj") // Load OBJ model dwarf := rl.LoadModel("dwarf.obj") // Load OBJ model
texture := rl.LoadTexture("dwarf_diffuse.png") // Load model texture texture := rl.LoadTexture("dwarf_diffuse.png") // Load model texture
dwarf.Material.Maps[rl.MapDiffuse].Texture = texture // Set dwarf model diffuse texture dwarf.Materials = make([]rl.Material, 1)
dwarf.Materials[0].Maps[rl.MapDiffuse].Texture = texture // Set dwarf model diffuse texture
position := rl.NewVector3(0.0, 0.0, 0.0) // Set model position position := rl.NewVector3(0.0, 0.0, 0.0) // Set model position