aboutsummaryrefslogtreecommitdiff
path: root/examples/shaders_custom_uniform.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/shaders_custom_uniform.c')
-rw-r--r--examples/shaders_custom_uniform.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/shaders_custom_uniform.c b/examples/shaders_custom_uniform.c
index 516d5087..c4f87259 100644
--- a/examples/shaders_custom_uniform.c
+++ b/examples/shaders_custom_uniform.c
@@ -34,7 +34,7 @@ int main()
Model dwarf = LoadModel("resources/model/dwarf.obj"); // Load OBJ model
Texture2D texture = LoadTexture("resources/model/dwarf_diffuse.png"); // Load model texture (diffuse map)
- SetModelTexture(&dwarf, texture); // Bind texture to model
+ dwarf.material.texDiffuse = texture; // Set dwarf model diffuse texture
Vector3 position = { 0.0f, 0.0f, 0.0f }; // Set model position