scene to view our effects

This commit is contained in:
m.gaedke 2023-01-27 13:49:07 +01:00
parent 6159650a00
commit 133f8444d2
2 changed files with 23 additions and 0 deletions

View file

@ -37,6 +37,9 @@ endif()
# Executables
add_executable(beautifulScene beautifulScene.cpp)
target_link_libraries(beautifulScene tracey)
add_executable(tracey_ex1 homeworkMains/ex1.cpp)
target_link_libraries(tracey_ex1 tracey)

20
beautifulScene.cpp Normal file
View file

@ -0,0 +1,20 @@
#include <scene/simplescene.h>
#include <camera/perspectivecamera.h>
int main()
{
SimpleScene scene;
// Set up the camera
PerspectiveCamera camera;
camera.setFovAngle(90.0f);
camera.setPosition(Vector3d(0.0f, 0.0f, -10.0f));
camera.setForwardDirection(Vector3d(0.0f, 0.0f, 1.0f));
camera.setUpDirection(Vector3d(0.0f, 1.0f, 0.0f));
return 0;
}