https://plus.google.com/+TerryHendrixII/posts/F6PR4mprHrD
I notice this today:
http://www.vronlinux.com/articles/adventures-with-openvr-and-the-vive-on-linux.8
Hopefully have an update at the end of the week. :)
First time I tested on an HMD in a while, and I notice the new deferred water isn't setup correctly. Pretty handy to have a dynamic RT browser. |
out vec2 v_Texcoord;
void main()
{
// Fullscreen clipped triangle.
int x = ( gl_VertexID << 1 ) & 2;
int y = gl_VertexID & 2;
v_Texcoord = vec2( x, y );
gl_Position = vec4( v_Texcoord * vec2( 2.0, 2.0 ) + vec2( -1.0, -1.0 ), 0.0, 1.0 );
// Monoscopic : 2.0, RightEye : 1.0, LeftEye : 0.0
// { scale = 1, offset = 0 }; { scale = 0.5, offset = 0.5 }; { scale = 0.5, offset = 0.0 }
int i = int(floor( _Eye )) >> 1;
float stereo = 1.0 - i;
float scale = 1.0 - 0.5 * stereo;
float offset = 0.5 * _Eye * stereo;
v_Texcoord.x = v_Texcoord.x * scale + offset;
}
No comments:
Post a Comment