summaryrefslogtreecommitdiffhomepage
path: root/examples/shaders_standard_lighting.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/shaders_standard_lighting.c')
-rw-r--r--examples/shaders_standard_lighting.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/examples/shaders_standard_lighting.c b/examples/shaders_standard_lighting.c
index f2b35171..e539ec47 100644
--- a/examples/shaders_standard_lighting.c
+++ b/examples/shaders_standard_lighting.c
@@ -64,9 +64,7 @@ int main()
pointLight->radius = 3.0f;
// Setup orbital camera
- SetCameraMode(CAMERA_ORBITAL); // Set an orbital camera mode
- SetCameraPosition(camera.position); // Set internal camera position to match our camera position
- SetCameraTarget(camera.target); // Set internal camera target to match our camera target
+ SetCameraMode(camera, CAMERA_ORBITAL); // Set an orbital camera mode
SetTargetFPS(60); // Set our game to run at 60 frames-per-second
//--------------------------------------------------------------------------------------
@@ -76,7 +74,7 @@ int main()
{
// Update
//----------------------------------------------------------------------------------
- UpdateCamera(&camera); // Update internal camera and our camera
+ UpdateCamera(&camera); // Update camera
//----------------------------------------------------------------------------------
// Draw