15 lines
No EOL
424 B
C++
15 lines
No EOL
424 B
C++
module;
|
|
|
|
#include <cstdint>
|
|
#include "VulkanBuffer.h"
|
|
#include <vulkan/vulkan.h>
|
|
|
|
module Crafter.Graphics;
|
|
import Crafter.Math;
|
|
using namespace Crafter;
|
|
|
|
Camera::Camera(float fov, float aspectRatio, float near, float far) {
|
|
projection = Matrix<float, 4, 4, 1>::Projection(fov, aspectRatio, near, far);
|
|
view = Matrix<float, 4, 4, 1>::Idenity();
|
|
projectionView = camera.matrices.perspective*camera.matrices.view;
|
|
} |