aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorvictorfisac <victorfisac@gmail.com>2016-01-03 18:24:20 +0100
committervictorfisac <victorfisac@gmail.com>2016-01-03 18:24:20 +0100
commit1656d17b22b362e54710b7164638464e02bd7e5a (patch)
tree9626741431535dbfdb518d35f553c8184392a23c /examples
parent8fa5c9dce29e3d25cfe5c6e9baba2b6655e071bb (diff)
downloadraylib-1656d17b22b362e54710b7164638464e02bd7e5a.tar.gz
raylib-1656d17b22b362e54710b7164638464e02bd7e5a.zip
Fixed little bug in lighting blinn phong example
Diffstat (limited to 'examples')
-rw-r--r--examples/lighting_blinn_phong.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/lighting_blinn_phong.c b/examples/lighting_blinn_phong.c
index 48949b03..d4ff548a 100644
--- a/examples/lighting_blinn_phong.c
+++ b/examples/lighting_blinn_phong.c
@@ -31,7 +31,7 @@ int main()
// Model initialization
Vector3 position = { 0.0, 0.0, 0.0 };
Model model = LoadModel("resources/model/dwarf.obj");
- // Shader shader = LoadShader("resources/shaders/phong.vs", "resources/shaders/phong.fs");
+ Shader shader = LoadShader("resources/shaders/phong.vs", "resources/shaders/phong.fs");
SetModelShader(&model, shader);
// Shader locations initialization
@@ -154,7 +154,7 @@ int main()
Begin3dMode(camera);
- DrawModel(model, position, 0.1f, (Color){255 * blinnMaterial.diffuseColor[0], 255 * blinnMaterial.diffuseColor[1], 255 * blinnMaterial.diffuseColor[2], 255});
+ DrawModel(model, position, 4.0f, (Color){255 * blinnMaterial.diffuseColor[0], 255 * blinnMaterial.diffuseColor[1], 255 * blinnMaterial.diffuseColor[2], 255});
DrawSphere((Vector3){directionalLight.position[0], directionalLight.position[1], directionalLight.position[2]}, 1, YELLOW);