Support for 21:9 aspect ratio

This commit is contained in:
brunoherbelin
2020-09-19 20:45:16 +02:00
parent 1209d337bc
commit db6d3a6fa0
4 changed files with 30 additions and 30 deletions
+2 -2
View File
@@ -7,8 +7,8 @@
#include <glad/glad.h>
const char* FrameBuffer::aspect_ratio_name[4] = { "4:3", "3:2", "16:10", "16:9" };
glm::vec2 FrameBuffer::aspect_ratio_size[4] = { glm::vec2(4.f,3.f), glm::vec2(3.f,2.f), glm::vec2(16.f,10.f), glm::vec2(16.f,9.f) };
const char* FrameBuffer::aspect_ratio_name[5] = { "4:3", "3:2", "16:10", "16:9", "21:9" };
glm::vec2 FrameBuffer::aspect_ratio_size[5] = { glm::vec2(4.f,3.f), glm::vec2(3.f,2.f), glm::vec2(16.f,10.f), glm::vec2(16.f,9.f) , glm::vec2(21.f,9.f) };
const char* FrameBuffer::resolution_name[4] = { "720p", "1080p", "1440", "4K" };
float FrameBuffer::resolution_height[4] = { 720.f, 1080.f, 1440.f, 2160.f };
+2 -2
View File
@@ -8,8 +8,8 @@ class FrameBuffer {
public:
// size descriptions
static const char* aspect_ratio_name[4];
static glm::vec2 aspect_ratio_size[4];
static const char* aspect_ratio_name[5];
static glm::vec2 aspect_ratio_size[5];
static const char* resolution_name[4];
static float resolution_height[4];
static glm::vec3 getResolutionFromParameters(int ar, int h);
+13 -13
View File
@@ -1,6 +1,6 @@
ply
format ascii 1.0
comment Created by Blender 2.82 (sub 7) - www.blender.org, source file: 'border_large_round.blend'
comment Created by Blender 2.90.0 - www.blender.org
element vertex 12
property float x
property float y
@@ -12,18 +12,18 @@ property uchar alpha
element face 8
property list uchar uint vertex_indices
end_header
0.474886 1.039382 0.000000 255 255 255 255
-0.476948 1.013523 0.000000 255 255 255 255
0.474853 1.013523 0.000000 255 255 255 255
-0.476461 1.000000 0.000000 255 255 255 255
0.474859 1.000000 0.000000 255 255 255 255
0.474853 -1.013506 0.000000 255 255 255 255
-0.475529 -1.000000 0.000000 255 255 255 255
-0.476005 -1.013506 0.000000 255 255 255 255
0.474850 -1.039350 0.000000 255 255 255 255
-0.477540 1.039382 0.000000 255 255 255 255
0.474846 -1.000000 0.000000 255 255 255 255
-0.476572 -1.039350 0.000000 255 255 255 255
0.580742 1.039382 0.000000 255 255 255 255
-0.582895 1.013523 0.000000 255 255 255 255
0.580702 1.013523 0.000000 255 255 255 255
-0.582300 1.000000 0.000000 255 255 255 255
0.580709 1.000000 0.000000 255 255 255 255
0.580702 -1.013506 0.000000 255 255 255 255
-0.581161 -1.000000 0.000000 255 255 255 255
-0.581743 -1.013506 0.000000 255 255 255 255
0.580698 -1.039350 0.000000 255 255 255 255
-0.583619 1.039382 0.000000 255 255 255 255
0.580693 -1.000000 0.000000 255 255 255 255
-0.582436 -1.039350 0.000000 255 255 255 255
3 0 1 2
3 2 3 4
3 5 6 7
+13 -13
View File
@@ -1,6 +1,6 @@
ply
format ascii 1.0
comment Created by Blender 2.82 (sub 7) - www.blender.org, source file: 'border_round.blend'
comment Created by Blender 2.90.0 - www.blender.org
element vertex 12
property float x
property float y
@@ -12,18 +12,18 @@ property uchar alpha
element face 8
property list uchar uint vertex_indices
end_header
-0.475648 -1.027167 0.000000 255 255 255 255
0.475433 -1.013523 0.000000 255 255 255 255
-0.475655 -1.013523 0.000000 255 255 255 255
0.475659 -1.000000 0.000000 255 255 255 255
-0.475662 -1.000000 0.000000 255 255 255 255
-0.475655 1.013506 0.000000 255 255 255 255
0.474727 1.000000 0.000000 255 255 255 255
0.475300 1.013506 0.000000 255 255 255 255
-0.475648 1.027145 0.000000 255 255 255 255
0.475346 -1.027167 0.000000 255 255 255 255
-0.475648 1.000000 0.000000 255 255 255 255
0.475290 1.027145 0.000000 255 255 255 255
-0.571778 -1.027167 0.000000 255 255 255 255
0.571592 -1.013523 0.000000 255 255 255 255
-0.571786 -1.013523 0.000000 255 255 255 255
0.571863 -1.000000 0.000000 255 255 255 255
-0.571795 -1.000000 0.000000 255 255 255 255
-0.571786 1.013506 0.000000 255 255 255 255
0.570744 1.000000 0.000000 255 255 255 255
0.571432 1.013506 0.000000 255 255 255 255
-0.571778 1.027145 0.000000 255 255 255 255
0.571488 -1.027167 0.000000 255 255 255 255
-0.571778 1.000000 0.000000 255 255 255 255
0.571421 1.027145 0.000000 255 255 255 255
3 0 1 2
3 2 3 4
3 5 6 7