From ce0030eef2a1b520db87092fb2a2a44507e1a4bf Mon Sep 17 00:00:00 2001 From: Milan Nikolic Date: Mon, 25 Nov 2019 03:48:35 +0100 Subject: [PATCH] Fix build --- examples/shaders/postprocessing/main.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/shaders/postprocessing/main.go b/examples/shaders/postprocessing/main.go index 76630f2..1a621b9 100644 --- a/examples/shaders/postprocessing/main.go +++ b/examples/shaders/postprocessing/main.go @@ -50,9 +50,10 @@ func main() { camera.Up = rl.NewVector3(0.0, 1.0, 0.0) camera.Fovy = 45.0 - dwarf := rl.LoadModel("dwarf.obj") // Load OBJ model - texture := rl.LoadTexture("dwarf_diffuse.png") // Load model texture - dwarf.Material.Maps[rl.MapDiffuse].Texture = texture // Set dwarf model diffuse texture + dwarf := rl.LoadModel("dwarf.obj") // Load OBJ model + texture := rl.LoadTexture("dwarf_diffuse.png") // Load model 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