summaryrefslogtreecommitdiff
path: root/src/vk/graphics_pipeline_3d.cpp
diff options
context:
space:
mode:
authorFrederico Linhares <fred@linhares.blue>2023-10-26 15:21:11 -0300
committerFrederico Linhares <fred@linhares.blue>2023-10-27 17:27:36 -0300
commitc4efa865f359c5c9e365d5faa8ae3c88f3657cb7 (patch)
tree6beeadf7a5eec70dccfb42cfd580fa63a11993ed /src/vk/graphics_pipeline_3d.cpp
parentba447583c74d44c6b07c5409918207157f921efe (diff)
feat Create an interface to change field of view
Diffstat (limited to 'src/vk/graphics_pipeline_3d.cpp')
-rw-r--r--src/vk/graphics_pipeline_3d.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vk/graphics_pipeline_3d.cpp b/src/vk/graphics_pipeline_3d.cpp
index d98a27d..6bfd559 100644
--- a/src/vk/graphics_pipeline_3d.cpp
+++ b/src/vk/graphics_pipeline_3d.cpp
@@ -341,7 +341,7 @@ GraphicsPipeline3D::draw(
// Projection matrix.
ubo_view_3d.proj = glm::perspective(
- glm::radians(45.0f),
+ glm::radians(view->field_of_view),
view->region.z / view->region.w,
0.1f, 100.0f);