-
-
Notifications
You must be signed in to change notification settings - Fork 516
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(client_core): 🐛 Workaround for blank right eye view (#2397)
- Loading branch information
Showing
4 changed files
with
107 additions
and
92 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
#version 300 es | ||
|
||
uniform int view_idx; | ||
|
||
out vec2 uv; | ||
|
||
void main() { | ||
uv = vec2(gl_VertexID & 1, gl_VertexID >> 1); | ||
gl_Position = vec4((uv - 0.5f) * 2.f, 0, 1); | ||
vec2 screen_uv = vec2(gl_VertexID & 1, gl_VertexID >> 1); | ||
gl_Position = vec4((screen_uv - 0.5f) * 2.f, 0, 1); | ||
uv = vec2((screen_uv.x + float(view_idx)) / 2.f, screen_uv.y); | ||
} |
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