plugins/openvr: Strip trailing whitespace.

This commit is contained in:
Lubosz Sarnecki 2024-02-12 20:33:48 +01:00
parent c7f4f9f23d
commit 41c380eb23
4 changed files with 10 additions and 10 deletions

View file

@ -93,10 +93,10 @@ out vec4 FragColor;
void main() {
vec2 uv = vTexCoord;
mat4 eyeInverseProjection;
mat4 eyeProjection;
float xoffset = 1.0;
vec2 uvmin = vec2(0.0);
vec2 uvmax = vec2(1.0);
@ -117,12 +117,12 @@ void main() {
vec4 ndcSpace = vec4(vPosition, 1.0);
ndcSpace.x *= 2.0;
ndcSpace.x += xoffset;
// Convert from NDC to eyespace
vec4 eyeSpace = eyeInverseProjection * ndcSpace;
eyeSpace /= eyeSpace.w;
// Convert to a noramlized ray
// Convert to a noramlized ray
vec3 ray = eyeSpace.xyz;
ray = normalize(ray);
@ -140,7 +140,7 @@ void main() {
ndcSpace /= ndcSpace.w;
ndcSpace.x -= xoffset;
ndcSpace.x /= 2.0;
// Calculate the new UV coordinates
uv = (ndcSpace.xy / 2.0) + 0.5;
if (any(greaterThan(uv, uvmax)) || any(lessThan(uv, uvmin))) {

View file

@ -27,7 +27,7 @@ static const size_t COMPOSITING_BUFFER_SIZE = 3;
struct CompositeInfo {
using Queue = std::queue<CompositeInfo>;
using Array = std::array<CompositeInfo, COMPOSITING_BUFFER_SIZE>;
gpu::TexturePointer texture;
uint32_t textureID { 0 };
glm::mat4 pose;

View file

@ -306,8 +306,8 @@ void handleOpenVrEvents() {
#if DEV_BUILD
//qDebug() << "OpenVR: Event " << activeHmd->GetEventTypeNameFromEnum((vr::EVREventType)event.eventType) << "(" << event.eventType << ")";
// FIXME: Reinstate the line above and remove the following lines once the problem with excessive occurrences of
// VREvent_ActionBindingReloaded events is fixed in SteamVR for Linux.
// FIXME: Reinstate the line above and remove the following lines once the problem with excessive occurrences of
// VREvent_ActionBindingReloaded events is fixed in SteamVR for Linux.
// https://github.com/ValveSoftware/SteamVR-for-Linux/issues/307
#ifdef Q_OS_LINUX
if (event.eventType != vr::VREvent_ActionBindingReloaded) {

View file

@ -1831,9 +1831,9 @@ void ViveControllerManager::InputDevice::setConfigFromString(const QString& valu
}
/*@jsdoc
* <p>The <code>Controller.Hardware.Vive</code> object has properties representing the Vive. The property values are integer
* <p>The <code>Controller.Hardware.Vive</code> object has properties representing the Vive. The property values are integer
* IDs, uniquely identifying each output. <em>Read-only.</em></p>
* <p>These outputs can be mapped to actions or functions or <code>Controller.Standard</code> items in a {@link RouteObject}
* <p>These outputs can be mapped to actions or functions or <code>Controller.Standard</code> items in a {@link RouteObject}
* mapping.</p>
* <table>
* <thead>