module; #include #include "VulkanBuffer.h" #include #include #include module Crafter.Graphics; import Crafter.Math; using namespace Crafter; Camera::Camera(float fov, float aspectRatio, float near, float far) { projection = MatrixRowMajor::Perspective(fov, aspectRatio, near, far); view = MatrixRowMajor::Rotation(0, 0, ToRadian(180.0f))*MatrixRowMajor::Translation(1.0f, 0.0f, -10.0f); Update(); } void Camera::Update() { projectionView = projection*view; }