Fix build
This commit is contained in:
parent
735cd25396
commit
ce0030eef2
1 changed files with 4 additions and 3 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue