DeferredFrameTransform: Hack to get lighting working properly in VR

Somewhere, the eye view transform is being applied twice. For now,
this hack with applying an inverse view transform corrects the bugged
lighting in the XR branch.
This commit is contained in:
Ada 2025-01-26 00:35:17 +10:00 committed by Ada
parent 7c3fa5b175
commit 36768b6b88
2 changed files with 0 additions and 22 deletions

View file

@ -89,7 +89,6 @@ bool OpenXrContext::initInstance() {
return false;
bool openglSupported = false;
bool bindingModificationSupported = false;
qCInfo(xr_context_cat, "Runtime supports %d extensions:", count);
for (uint32_t i = 0; i < count; i++) {
@ -97,18 +96,6 @@ bool OpenXrContext::initInstance() {
if (strcmp(XR_KHR_OPENGL_ENABLE_EXTENSION_NAME, properties[i].extensionName) == 0) {
openglSupported = true;
}
if (strcmp(XR_KHR_BINDING_MODIFICATION_EXTENSION_NAME, properties[i].extensionName) == 0) {
bindingModificationSupported = true;
}
if (strcmp(XR_EXT_DPAD_BINDING_EXTENSION_NAME, properties[i].extensionName) == 0) {
_dpadBindingSupported = true;
}
if (strcmp(XR_EXT_PALM_POSE_EXTENSION_NAME, properties[i].extensionName) == 0) {
_palmPoseSupported = true;
}
}
if (!openglSupported) {
@ -117,13 +104,6 @@ bool OpenXrContext::initInstance() {
}
std::vector<const char*> enabled = {XR_KHR_OPENGL_ENABLE_EXTENSION_NAME};
if (bindingModificationSupported && _dpadBindingSupported) {
enabled.emplace(enabled.end(), XR_KHR_BINDING_MODIFICATION_EXTENSION_NAME);
enabled.emplace(enabled.end(), XR_EXT_DPAD_BINDING_EXTENSION_NAME);
}
if (_palmPoseSupported) {
enabled.emplace(enabled.end(), XR_EXT_PALM_POSE_EXTENSION_NAME);
}
XrInstanceCreateInfo info = {
.type = XR_TYPE_INSTANCE_CREATE_INFO,

View file

@ -69,8 +69,6 @@ public:
QString _systemName;
bool _isSessionRunning = false;
bool _dpadBindingSupported = false;
bool _palmPoseSupported = false;
bool _dpadNeedsClick = false;
private: