fixed bug in camera and better parameterization of draw floor

Former-commit-id: 42f1a38255
This commit is contained in:
Alec Jacobson (jalec
2013-12-06 17:35:59 +01:00
parent f4ee805a31
commit ccbdc48e71
5 changed files with 37 additions and 13 deletions
+4
View File
@@ -131,6 +131,10 @@ void reshape_viewports()
viewports[1].reshape( 0,eff_h*height, eff_v*width,(1.-eff_h)*height);
viewports[2].reshape( 0, 0, eff_v*width,eff_h*height);
viewports[3].reshape(eff_v*width, 0,(1.-eff_v)*width,eff_h*height);
for(auto & vp : viewports)
{
vp.camera.m_aspect = (double)vp.width/(double)vp.height;
}
}
void reshape(int width,int height)