Skip to content

Commit

Permalink
new resolutions
Browse files Browse the repository at this point in the history
  • Loading branch information
patriciogonzalezvivo committed Nov 23, 2023
1 parent 7fea7a7 commit aca3162
Showing 1 changed file with 20 additions and 9 deletions.
29 changes: 20 additions & 9 deletions src/xr/holoPlay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,26 @@ void setQuiltProperties(const QuiltProperties& _quilt) {
quilt_shader.setSource(vera::getLenticularFragShader(vera::getVersion()), vera::getDefaultSrc(vera::VERT_BILLBOARD));
}

static int quilt_resolutions[8][4] = {
{2048, 2048, 4, 8},
{4096, 4096, 5, 9},
{8192, 8192, 5, 9},
{3360, 3360, 8, 6},
{4026, 4096, 11, 8},
{4225, 4095, 13, 7},
{4224, 4096, 12, 8},
{4224, 4230, 12, 9}
static int quilt_resolutions[16][4] = {
{2048, 2048, 4, 8}, // 0
{3360, 3360, 4, 8}, // 1
{4096, 4096, 4, 8}, // 2
{8192, 8192, 4, 8}, // 3

{2048, 2048, 5, 9}, // 4
{3360, 3360, 5, 9}, // 5
{4096, 4096, 5, 9}, // 6
{8192, 8192, 5, 9}, // 7

{2040, 2040, 8, 6}, // 8
{3360, 3360, 8, 6}, // 9
{4080, 4080, 8, 6}, // 10
{8160, 8160, 8, 6}, // 11

{4026, 4096, 11, 8},// 12
{4225, 4095, 13, 7},// 13
{4224, 4096, 12, 8},// 14
{4224, 4230, 12, 9} // 15
};

void setQuiltProperties(size_t _index) {
Expand Down

0 comments on commit aca3162

Please sign in to comment.