Fix build
This commit is contained in:
parent
735cd25396
commit
ce0030eef2
1 changed files with 4 additions and 3 deletions
|
@ -50,9 +50,10 @@ func main() {
|
||||||
camera.Up = rl.NewVector3(0.0, 1.0, 0.0)
|
camera.Up = rl.NewVector3(0.0, 1.0, 0.0)
|
||||||
camera.Fovy = 45.0
|
camera.Fovy = 45.0
|
||||||
|
|
||||||
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