texture
This commit is contained in:
parent
01a3211dfb
commit
98b775e33e
21 changed files with 361 additions and 5541 deletions
|
|
@ -17,10 +17,10 @@ using namespace Crafter;
|
|||
|
||||
Camera::Camera() {
|
||||
old::Camera camera;
|
||||
camera.type = old::Camera::CameraType::lookat;
|
||||
camera.setPerspective(60.0f, 16 / 9, 0.1f, 512.0f);
|
||||
camera.setRotation(glm::vec3(180.0f, 0.0f, 0.0f));
|
||||
camera.setTranslation(glm::vec3(0.0f, 0.0f, -10.0f));
|
||||
camera.type = old::Camera::CameraType::firstperson;
|
||||
camera.setPerspective(90.0f, 16 / 9, 0.1f, 512.0f);
|
||||
camera.setRotation(glm::vec3(180.0f, 150, 0));
|
||||
camera.setTranslation(glm::vec3(-100.0f, -130.0f, -100.0f));
|
||||
|
||||
projectionView = camera.matrices.perspective*camera.matrices.view;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue