Sign in to follow this  
FGFS

light up scene

Recommended Posts

Hi

I can improve my X-Plane FPS by only drawing once instead of twice but at the cost of my texture getting darker. Seems simple but how to

light up the whole scene, can't figure it. I draw alike:

 

                    glBegin(GL_TRIANGLE_STRIP);
                            // draw vertex 0
                            glColor3f(rgb[0], rgb[1], rgb[2]);
                            glVertex3f(terrainMap[x][z][0], terrainMap[x][z][1], terrainMap[x][z][2]);
...

 

I tried glColor3f(rgb[0]+0.1, rgb[1]+0.1, rgb[2]+0.1);

and also added glColor3f(1.0, 1.0, 1.0); before glcolor.

Thanks in advance

Edited by FGFS

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this