summaryrefslogtreecommitdiffhomepage
path: root/examples/core_3d_mode.c
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2016-03-05 13:05:45 +0100
committerraysan5 <[email protected]>2016-03-05 13:05:45 +0100
commitd8bd8634ab7d5179cb1481206176af1f8e592e75 (patch)
tree1b22e39d70514808acbef6f7b2dcd2d5a50f3346 /examples/core_3d_mode.c
parentdcbf2a0e0c904870ac3ac59a3623a3954ab0243f (diff)
downloadraylib-d8bd8634ab7d5179cb1481206176af1f8e592e75.tar.gz
raylib-d8bd8634ab7d5179cb1481206176af1f8e592e75.zip
3d Camera: Added support for field-of-view Y
Diffstat (limited to 'examples/core_3d_mode.c')
-rw-r--r--examples/core_3d_mode.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/core_3d_mode.c b/examples/core_3d_mode.c
index 7be5dd45..5f761655 100644
--- a/examples/core_3d_mode.c
+++ b/examples/core_3d_mode.c
@@ -25,6 +25,7 @@ int main()
camera.position = (Vector3){ 0.0f, 10.0f, 10.0f }; // Camera position
camera.target = (Vector3){ 0.0f, 0.0f, 0.0f }; // Camera looking at point
camera.up = (Vector3){ 0.0f, 1.0f, 0.0f }; // Camera up vector (rotation towards target)
+ camera.fovy = 45.0f; // Camera field-of-view Y
Vector3 cubePosition = { 0.0f, 0.0f, 0.0f };