offset the raytrace texture to make it visible on some systems

This commit is contained in:
ejcoumans 2007-06-01 20:28:23 +00:00
parent b958c1fbcb
commit b098652911

View File

@ -114,9 +114,9 @@ btTransform transforms[maxNumObjects];
renderTexture* raytracePicture = 0;
//this applies to the raytracer virtual screen/image buffer
int screenWidth = 256;
int screenWidth = 128;
//float aspectRatio = (3.f/4.f);
int screenHeight = 256;//screenWidth * aspectRatio;
int screenHeight = 128;//screenWidth * aspectRatio;
GLuint glTextureId;
btSphereShape mySphere(1);
@ -447,7 +447,7 @@ void Raytracer::displayCallback()
glMatrixMode(GL_MODELVIEW);
glPushMatrix();
glLoadIdentity(); // reset The Modelview Matrix
glTranslatef(0.0f,0.0f,-3.0f); // Move Into The Screen 5 Units
glTranslatef(0.0f,0.0f,-3.1f); // Move Into The Screen 5 Units