little tuning for rendering

This commit is contained in:
Erwin Coumans 2017-03-28 08:20:10 -07:00
parent 46c5b00964
commit fffa17dd35
2 changed files with 3 additions and 3 deletions

View File

@ -1237,8 +1237,8 @@ void OpenGLExampleBrowser::update(float deltaTime)
if (renderGrid)
{
BT_PROFILE("Draw Grid");
glPolygonOffset(3.0, 3);
glEnable(GL_POLYGON_OFFSET_FILL);
//glPolygonOffset(3.0, 3);
//glEnable(GL_POLYGON_OFFSET_FILL);
s_app->drawGrid(dg);
}

View File

@ -323,7 +323,7 @@ void SimpleOpenGL2Renderer::drawSceneInternal(int pass, int cameraUpAxis)
void SimpleOpenGL2Renderer::renderScene()
{
GLfloat light_ambient[] = { b3Scalar(0.4), b3Scalar(0.4), b3Scalar(0.4), b3Scalar(1.0) };
GLfloat light_ambient[] = { b3Scalar(0.2), b3Scalar(0.2), b3Scalar(0.2), b3Scalar(1.0) };
GLfloat light_diffuse[] = { b3Scalar(1.0), b3Scalar(1.0), b3Scalar(1.0), b3Scalar(1.0) };
GLfloat light_specular[] = { b3Scalar(1.0), b3Scalar(1.0), b3Scalar(1.0), b3Scalar(1.0 )};
/* light_position is NOT default value */