create_distortion_mesh(right_mesh, hmd, ovrEye_Right, right_fov);
ovrSizei tex_size = ovrHmd_GetFovTextureSize(hmd, ovrEye_Left, left_fov, 1.0);
- width_factor = tex_size.w*1.0f/hmd->Resolution.w;
- height_factor = tex_size.h*1.0f/hmd->Resolution.h;
- float aspect = (inner+outer)/(vertical*2);
- aspect_factor = aspect*hmd->Resolution.h/hmd->Resolution.w;
+ target_width = tex_size.w;
+ target_height = tex_size.h;
+ render_aspect = (inner+outer)/(vertical*2);
left_shdata.uniform("texture", 0);
right_shdata.uniform("texture", 0);