fovy
This commit is contained in:
parent
2c6bb8ef56
commit
dc882c5fed
|
|
@ -65,28 +65,28 @@ int main(void)
|
||||||
{
|
{
|
||||||
cameraMode = CAMERA_FREE;
|
cameraMode = CAMERA_FREE;
|
||||||
camera.up = (Vector3){ 0.0f, 1.0f, 0.0f }; // Reset roll
|
camera.up = (Vector3){ 0.0f, 1.0f, 0.0f }; // Reset roll
|
||||||
camera.fovy = 60.0f;
|
//camera.fovy = 60.0f;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (IsKeyPressed(KEY_TWO))
|
if (IsKeyPressed(KEY_TWO))
|
||||||
{
|
{
|
||||||
cameraMode = CAMERA_FIRST_PERSON;
|
cameraMode = CAMERA_FIRST_PERSON;
|
||||||
camera.up = (Vector3){ 0.0f, 1.0f, 0.0f }; // Reset roll
|
camera.up = (Vector3){ 0.0f, 1.0f, 0.0f }; // Reset roll
|
||||||
camera.fovy = 60.0f;
|
//camera.fovy = 60.0f;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (IsKeyPressed(KEY_THREE))
|
if (IsKeyPressed(KEY_THREE))
|
||||||
{
|
{
|
||||||
cameraMode = CAMERA_THIRD_PERSON;
|
cameraMode = CAMERA_THIRD_PERSON;
|
||||||
camera.up = (Vector3){ 0.0f, 1.0f, 0.0f }; // Reset roll
|
camera.up = (Vector3){ 0.0f, 1.0f, 0.0f }; // Reset roll
|
||||||
camera.fovy = 60.0f;
|
//camera.fovy = 60.0f;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (IsKeyPressed(KEY_FOUR))
|
if (IsKeyPressed(KEY_FOUR))
|
||||||
{
|
{
|
||||||
cameraMode = CAMERA_ORBITAL;
|
cameraMode = CAMERA_ORBITAL;
|
||||||
camera.up = (Vector3){ 0.0f, 1.0f, 0.0f }; // Reset roll
|
camera.up = (Vector3){ 0.0f, 1.0f, 0.0f }; // Reset roll
|
||||||
camera.fovy = 60.0f;
|
//camera.fovy = 60.0f;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Switch camera projection
|
// Switch camera projection
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user