diff options
| author | Ray <raysan5@gmail.com> | 2018-05-11 18:14:51 +0200 |
|---|---|---|
| committer | Ray <raysan5@gmail.com> | 2018-05-11 18:14:51 +0200 |
| commit | 245704df723343fd274f77589164c6e9984aef8b (patch) | |
| tree | 658186f23b7684ed46908db3f3ddf22f0fc83f5b /examples/models/models_obj_loading.c | |
| parent | 07901711250dff5eceac27f0a4e802833fe24b6f (diff) | |
| download | raylib-245704df723343fd274f77589164c6e9984aef8b.tar.gz raylib-245704df723343fd274f77589164c6e9984aef8b.zip | |
Reviewed examples
Diffstat (limited to 'examples/models/models_obj_loading.c')
| -rw-r--r-- | examples/models/models_obj_loading.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/models/models_obj_loading.c b/examples/models/models_obj_loading.c index 4e9b2986..45eb3e98 100644 --- a/examples/models/models_obj_loading.c +++ b/examples/models/models_obj_loading.c @@ -22,11 +22,11 @@ int main() // Define the camera to look into our 3d world Camera camera = { 0 }; - camera.position = (Vector3){ 3.0f, 3.0f, 3.0f }; - camera.target = (Vector3){ 0.0f, 1.5f, 0.0f }; - camera.up = (Vector3){ 0.0f, 1.0f, 0.0f }; - camera.fovy = 45.0f; - camera.type = CAMERA_PERSPECTIVE; + camera.position = (Vector3){ 3.0f, 3.0f, 3.0f }; // Camera position + camera.target = (Vector3){ 0.0f, 1.5f, 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 + camera.type = CAMERA_PERSPECTIVE; // Camera mode type Model dwarf = LoadModel("resources/model/dwarf.obj"); // Load OBJ model Texture2D texture = LoadTexture("resources/model/dwarf_diffuse.png"); // Load model texture |
