Fix manual foveation window position
This commit is contained in:
@@ -76,7 +76,7 @@ public:
|
|||||||
std::string environment_model = "assets://ground.glb";
|
std::string environment_model = "assets://ground.glb";
|
||||||
|
|
||||||
bool override_foveation_enable = false;
|
bool override_foveation_enable = false;
|
||||||
float override_foveation_pitch = 10 * M_PI / 180;
|
float override_foveation_pitch = -10 * M_PI / 180;
|
||||||
float override_foveation_distance = 3;
|
float override_foveation_distance = 3;
|
||||||
|
|
||||||
bool high_power_mode;
|
bool high_power_mode;
|
||||||
|
|||||||
@@ -827,7 +827,7 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte
|
|||||||
case gui_status::bitrate_settings:
|
case gui_status::bitrate_settings:
|
||||||
case gui_status::foveation_settings:
|
case gui_status::foveation_settings:
|
||||||
imgui_ctx->layers()[0].orientation = head_position->second;
|
imgui_ctx->layers()[0].orientation = head_position->second;
|
||||||
imgui_ctx->layers()[0].position = head_position->first + M * glm::vec3{0, -override_foveation_distance * sin(override_foveation_pitch), -override_foveation_distance};
|
imgui_ctx->layers()[0].position = head_position->first + M * glm::vec3{0, override_foveation_distance * sin(override_foveation_pitch), -override_foveation_distance};
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case gui_status::hidden:
|
case gui_status::hidden:
|
||||||
|
|||||||
Reference in New Issue
Block a user