Update examples

This commit is contained in:
jakub-swiniarski 2024-02-07 11:03:56 +01:00
commit 8b3959d974
7 changed files with 6413 additions and 662 deletions

View file

@ -34,6 +34,7 @@ int main(void)
camera.target = (Vector3){ 0.0f, 2.0f, 0.0f }; // Camera looking at point
camera.up = (Vector3){ 0.0f, 1.0f, 0.0f }; // Camera up vector (rotation towards target)
camera.fovy = 60.0f; // Camera field-of-view Y
camera.sensitivity = 0.003f; // Camera sensitivity
camera.projection = CAMERA_PERSPECTIVE; // Camera projection type
int cameraMode = CAMERA_FIRST_PERSON;
@ -203,4 +204,4 @@ int main(void)
//--------------------------------------------------------------------------------------
return 0;
}
}

View file

@ -31,6 +31,7 @@ int main(void)
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
camera.sensitivity = 0.003f; // Camera sensitivity
camera.projection = CAMERA_PERSPECTIVE; // Camera projection type
Vector3 cubePosition = { 0.0f, 0.0f, 0.0f };

View file

@ -31,6 +31,7 @@ int main(void)
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
camera.sensitivity = 0.003f; // Camera sensitivity
camera.projection = CAMERA_PERSPECTIVE; // Camera mode type
Vector3 cubePosition = { 0.0f, 0.0f, 0.0f };
@ -75,4 +76,4 @@ int main(void)
//--------------------------------------------------------------------------------------
return 0;
}
}

View file

@ -29,6 +29,7 @@ int main(void)
// Setup player 1 camera and screen
Camera cameraPlayer1 = { 0 };
cameraPlayer1.sensitivity = 0.003f;
cameraPlayer1.fovy = 45.0f;
cameraPlayer1.up.y = 1.0f;
cameraPlayer1.target.y = 1.0f;
@ -39,6 +40,7 @@ int main(void)
// Setup player two camera and screen
Camera cameraPlayer2 = { 0 };
cameraPlayer2.sensitivity = 0.003f;
cameraPlayer2.fovy = 45.0f;
cameraPlayer2.up.y = 1.0f;
cameraPlayer2.target.y = 3.0f;
@ -171,4 +173,4 @@ int main(void)
//--------------------------------------------------------------------------------------
return 0;
}
}

View file

@ -31,6 +31,7 @@ int main(void)
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
camera.sensitivity = 0.003f; // Camera sensitivity
camera.projection = CAMERA_PERSPECTIVE; // Camera projection type
Vector3 cubePosition = { 0.0f, 1.0f, 0.0f };

View file

@ -94,6 +94,7 @@ int main(void)
camera.target = (Vector3){ 0.0f, 2.0f, 0.0f }; // Camera looking at point
camera.up = (Vector3){ 0.0f, 1.0f, 0.0f }; // Camera up vector
camera.fovy = 60.0f; // Camera field-of-view Y
camera.sensitivity = 0.003f; // Camera sensitivity
camera.projection = CAMERA_PERSPECTIVE; // Camera projection type
Vector3 cubePosition = { 0.0f, 0.0f, 0.0f };
@ -147,4 +148,4 @@ int main(void)
//--------------------------------------------------------------------------------------
return 0;
}
}

View file

@ -31,6 +31,7 @@ int main(void)
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
camera.sensitivity = 0.003f; // Camera sensitivity
camera.projection = CAMERA_PERSPECTIVE; // Camera projection type
Vector3 cubePosition = { 0.0f, 0.0f, 0.0f };
@ -82,4 +83,4 @@ int main(void)
//--------------------------------------------------------------------------------------
return 0;
}
}