forked from fholger/openvr_foveated
-
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.
Merging using vr_steamvr_rel_to_sdk_release.
This should be everything in 1.10.32 [git-p4: depot-paths = "//vr/steamvr/sdk_release/": change = 5773387]
- Loading branch information
Showing
81 changed files
with
15,261 additions
and
4 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
15 changes: 15 additions & 0 deletions
15
samples/bin/hmd_opencv_sandbox_resources/charlesfloor.frag
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#version 430 core | ||
uniform sampler2D mytexture; | ||
in vec2 v2UVcoords; | ||
in vec3 opos; | ||
out vec4 outputColor; | ||
layout(location = 7) uniform vec4 coloruniform; | ||
void main() | ||
{ | ||
vec2 grid = clamp( sin( v2UVcoords*6000.0 )*60.0 - 58.0, vec2(0.0), vec2(1.0) ); //Make grid doodad | ||
//vec2 dgrid = sqrt( abs( dFdy( v2UVcoords ) + dFdx( v2UVcoords ) ) ); //Fade out colors to avoid aliasing by using derivitive. | ||
float dgrid = 4.0 - length( opos.xz )*.5; | ||
outputColor = vec4( ( vec3( length(grid) ) *0.1 + 0.05 ) * clamp (dgrid,0.0,1.0), 1.0 ) * coloruniform; | ||
|
||
|
||
} |
15 changes: 15 additions & 0 deletions
15
samples/bin/hmd_opencv_sandbox_resources/charlesfloor.vert
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#version 430 | ||
|
||
layout(location = 0) uniform mat4 matrix; | ||
layout(location = 0) in vec3 position; | ||
layout(location = 1) in vec2 v2UVcoordsIn; | ||
|
||
out vec2 v2UVcoords; | ||
out vec3 opos; | ||
void main() | ||
{ | ||
v2UVcoords = v2UVcoordsIn*2.0-1.0; | ||
opos = position; | ||
//gl_Position = matrix * vec4( position, 1.0 ) * ( vec4( 1., 1., 0., 1. ) /* Tricky: Don't far clip. */ ); | ||
gl_Position = matrix * vec4( position, 1.0 ); | ||
} |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#version 410 core | ||
|
||
uniform sampler2D mytexture; | ||
noperspective in vec2 v2UV; | ||
out vec4 outputColor; | ||
void main() | ||
{ | ||
outputColor = texture(mytexture, v2UV); | ||
} |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#version 410 core | ||
|
||
layout(location = 0) in vec4 position; | ||
layout(location = 1) in vec2 v2UVIn; | ||
noperspective out vec2 v2UV; | ||
|
||
void main() | ||
{ | ||
v2UV = v2UVIn; | ||
gl_Position = position; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#version 430 core | ||
|
||
layout(location = 8) uniform sampler2D mytexture; | ||
in vec4 colorTrans; | ||
out vec4 outputColor; | ||
void main() | ||
{ | ||
outputColor = vec4( colorTrans.rgba ); | ||
} |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#version 430 | ||
layout(location = 0) uniform mat4 matrix; | ||
layout(location = 7) uniform vec4 coloruniform; | ||
layout(location = 0) in vec3 position; | ||
layout(location = 1) in vec4 color; | ||
out vec4 colorTrans; | ||
|
||
void main() | ||
{ | ||
colorTrans = color * coloruniform * vec4( 1.0, 1.0, 1.0, 1. ); | ||
gl_Position = matrix * vec4( position, 1.0 ); | ||
} |
55 changes: 55 additions & 0 deletions
55
samples/bin/hmd_opencv_sandbox_resources/hmd_opencv_sandbox_actions.json
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 |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{ | ||
"default_bindings": [ | ||
{ | ||
"controller_type": "generic", | ||
"binding_url": "hmd_opencv_sandbox_bindings_generic.json" | ||
} | ||
], | ||
"actions": [ | ||
{ | ||
"name": "/actions/demo/in/HideCubes", | ||
"type": "boolean" | ||
}, | ||
{ | ||
"name": "/actions/demo/in/advance_demo", | ||
"type": "boolean" | ||
}, | ||
{ | ||
"name": "/actions/demo/in/triggerhaptic", | ||
"type": "boolean" | ||
}, | ||
{ | ||
"name": "/actions/demo/in/AnalogInput", | ||
"type": "vector2" | ||
}, | ||
{ | ||
"name": "/actions/demo/in/Hand_Right", | ||
"type": "pose" | ||
}, | ||
{ | ||
"name": "/actions/demo/in/Hand_Left", | ||
"type": "pose" | ||
}, | ||
{ | ||
"name": "/actions/demo/out/haptic_left", | ||
"type": "vibration" | ||
}, | ||
{ | ||
"name": "/actions/demo/out/haptic_right", | ||
"type": "vibration" | ||
} | ||
], | ||
"localization" : [ | ||
{ | ||
"language_tag": "en_US", | ||
"/actions/demo/in/HideCubes": "Hide Cubes", | ||
"/actions/demo/in/advance_demo": "Advance Demo", | ||
"/actions/demo/in/triggerhaptic": "Trigger Haptic Pulse", | ||
"/actions/demo/in/AnalogInput": "Analog Input", | ||
"/actions/demo/in/Hand_Right": "Right Hand Pose", | ||
"/actions/demo/in/Hand_Left": "Left Hand Pose", | ||
"/actions/demo/out/haptic_left": "Left Haptic Feedback", | ||
"/actions/demo/out/haptic_right": "Right Haptic Feedback" | ||
} | ||
] | ||
} |
94 changes: 94 additions & 0 deletions
94
samples/bin/hmd_opencv_sandbox_resources/hmd_opencv_sandbox_bindings_generic.json
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 |
---|---|---|
@@ -0,0 +1,94 @@ | ||
{ | ||
"bindings" : { | ||
"/actions/demo" : { | ||
"poses" : [ | ||
{ | ||
"output" : "/actions/demo/in/hand_left", | ||
"path" : "/user/hand/left/pose/raw" | ||
}, | ||
{ | ||
"output" : "/actions/demo/in/hand_right", | ||
"path" : "/user/hand/right/pose/raw" | ||
} | ||
], | ||
"haptics" : [ | ||
{ | ||
"output" : "/actions/demo/out/haptic_right", | ||
"path" : "/user/hand/right/output/haptic" | ||
}, | ||
{ | ||
"output" : "/actions/demo/out/haptic_left", | ||
"path" : "/user/hand/left/output/haptic" | ||
} | ||
], | ||
"sources" : [ | ||
{ | ||
"inputs" : { | ||
"click" : { | ||
"output" : "/actions/demo/in/hidecubes" | ||
} | ||
}, | ||
"mode" : "button", | ||
"path" : "/user/hand/right/input/trigger" | ||
}, | ||
{ | ||
"inputs" : { | ||
"position" : { | ||
"output" : "/actions/demo/in/analoginput" | ||
} | ||
}, | ||
"mode" : "trackpad", | ||
"path" : "/user/hand/right/input/trackpad" | ||
}, | ||
{ | ||
"inputs" : { | ||
"click" : { | ||
"output" : "/actions/demo/in/triggerhaptic" | ||
} | ||
}, | ||
"mode" : "button", | ||
"path" : "/user/hand/right/input/grip" | ||
}, | ||
{ | ||
"inputs" : { | ||
"click" : { | ||
"output" : "/actions/demo/in/hidecubes" | ||
} | ||
}, | ||
"mode" : "button", | ||
"path" : "/user/hand/left/input/trigger" | ||
}, | ||
{ | ||
"inputs" : { | ||
"click" : { | ||
"output" : "/actions/demo/in/triggerhaptic" | ||
} | ||
}, | ||
"mode" : "button", | ||
"path" : "/user/hand/left/input/grip" | ||
}, | ||
{ | ||
"inputs" : { | ||
"click" : { | ||
"output" : "/actions/demo/in/advance_demo" | ||
} | ||
}, | ||
"mode" : "button", | ||
"path" : "/user/hand/left/input/b" | ||
}, | ||
{ | ||
"inputs" : { | ||
"click" : { | ||
"output" : "/actions/demo/in/advance_demo" | ||
} | ||
}, | ||
"mode" : "button", | ||
"path" : "/user/hand/right/input/b" | ||
} | ||
] | ||
} | ||
}, | ||
"controller_type" : "generic", | ||
"description" : "Bindings for the OpenVR SDK \"hellovr_opengl\" demo for a generic controller", | ||
"name" : "HelloVR bindings for a generic controller" | ||
} |
Oops, something went wrong.