diff --git a/CMakeLists.txt b/CMakeLists.txt index fa0bc61..86a86cf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/beautifulScene.cpp b/beautifulScene.cpp new file mode 100644 index 0000000..f06af40 --- /dev/null +++ b/beautifulScene.cpp @@ -0,0 +1,20 @@ +#include + +#include + + + +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; +} \ No newline at end of file