From 29761c25190dee31ca3985ae4af602f3b3b53db3 Mon Sep 17 00:00:00 2001 From: raysan5 Date: Sat, 7 May 2016 18:29:04 +0200 Subject: [PATCH] Testing new material usage --- examples/shaders_model_shader.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/shaders_model_shader.c b/examples/shaders_model_shader.c index b302f631..a1e00671 100644 --- a/examples/shaders_model_shader.c +++ b/examples/shaders_model_shader.c @@ -37,8 +37,8 @@ int main() Shader shader = LoadShader("resources/shaders/glsl330/base.vs", "resources/shaders/glsl330/grayscale.fs"); // Load model shader - SetModelShader(&dwarf, shader); // Set shader effect to 3d model - SetModelTexture(&dwarf, texture); // Bind texture to model + dwarf.material.shader = shader; // Set shader effect to 3d model + dwarf.material.texDiffuse = texture; // Bind texture to model Vector3 position = { 0.0f, 0.0f, 0.0f }; // Set model position