forked from marlam/bino
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'marlam:main' into main
- Loading branch information
Showing
7 changed files
with
93 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
* Copyright (C) 2016, 2017, 2018, 2019, 2020, 2021, 2022 | ||
* Computer Graphics Group, University of Siegen | ||
* Written by Martin Lambers <[email protected]> | ||
* Copyright (C) 2022, 2023 | ||
* Copyright (C) 2022, 2023, 2024 | ||
* Martin Lambers <[email protected]> | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
|
@@ -120,8 +120,8 @@ bool BinoQVRApp::initProcess(QVRProcess*) | |
QString vrdeviceVS = readFile(":src/shader-vrdevice.vert.glsl"); | ||
QString vrdeviceFS = readFile(":src/shader-vrdevice.frag.glsl"); | ||
if (isGLES) { | ||
vrdeviceVS.prepend("#version 320 es\n"); | ||
vrdeviceFS.prepend("#version 320 es\n" | ||
vrdeviceVS.prepend("#version 310 es\n"); | ||
vrdeviceFS.prepend("#version 310 es\n" | ||
"precision mediump float;\n"); | ||
} else { | ||
vrdeviceVS.prepend("#version 330\n"); | ||
|
@@ -166,7 +166,10 @@ void BinoQVRApp::render(QVRWindow*, const QVRRenderContext& context, const unsig | |
int v = (context.eye(view) == QVR_Eye_Right ? 1 : 0); | ||
int texWidth = context.textureSize(view).width(); | ||
int texHeight = context.textureSize(view).height(); | ||
Bino::instance()->render(projectionMatrix, orientationMatrix, viewMatrix, v, texWidth, texHeight, textures[view]); | ||
Bino::instance()->render( | ||
context.unitedScreenWallBottomLeft(), context.unitedScreenWallBottomRight(), context.unitedScreenWallTopLeft(), | ||
context.intersectedScreenWallBottomLeft(), context.intersectedScreenWallBottomRight(), context.intersectedScreenWallTopLeft(), | ||
projectionMatrix, orientationMatrix, viewMatrix, v, texWidth, texHeight, textures[view]); | ||
// Render VR device models (optional) | ||
glUseProgram(_prg.programId()); | ||
for (int i = 0; i < QVRManager::deviceCount(); i++) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters