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