summaryrefslogtreecommitdiffhomepage
path: root/examples/shaders_model_shader.c
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2016-10-10 19:43:27 +0200
committerraysan5 <[email protected]>2016-10-10 19:43:27 +0200
commit648676f46b01327f0fbd6f017292a3159ea9ab2f (patch)
tree0abbf24e6c394472cad3290ef10f3b8d5bf8f87a /examples/shaders_model_shader.c
parent5fecf5c088122dc409bd209b08627e671cbdc175 (diff)
downloadraylib-648676f46b01327f0fbd6f017292a3159ea9ab2f.tar.gz
raylib-648676f46b01327f0fbd6f017292a3159ea9ab2f.zip
Update examples to new camera system
Diffstat (limited to 'examples/shaders_model_shader.c')
-rw-r--r--examples/shaders_model_shader.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/shaders_model_shader.c b/examples/shaders_model_shader.c
index a5516eba..26de4922 100644
--- a/examples/shaders_model_shader.c
+++ b/examples/shaders_model_shader.c
@@ -42,7 +42,7 @@ int main()
Vector3 position = { 0.0f, 0.0f, 0.0f }; // Set model position
- SetCameraMode(camera, CAMERA_ORBITAL); // Set an orbital camera mode
+ SetCameraMode(camera, CAMERA_FREE); // Set an orbital camera mode
SetTargetFPS(60); // Set our game to run at 60 frames-per-second
//--------------------------------------------------------------------------------------
@@ -70,6 +70,9 @@ int main()
End3dMode();
DrawText("(c) Dwarf 3D model by David Moreno", screenWidth - 200, screenHeight - 20, 10, GRAY);
+
+ DrawText(FormatText("Camera position: (%.2f, %.2f, %.2f)", camera.position.x, camera.position.y, camera.position.z), 600, 20, 10, BLACK);
+ DrawText(FormatText("Camera target: (%.2f, %.2f, %.2f)", camera.target.x, camera.target.y, camera.target.z), 600, 40, 10, GRAY);
DrawFPS(10, 10);