Sign in to follow this  

Changing the light brightness

Recommended Posts

yhbae    100
So far, I've been able to set the light properties and brightness settings in onSurfaceCreated() function and works like a charm.

I've hardcoded a "walking path" so that the scene appears as if a person is walking through the scene I've created.

Now, I am trying to change the brightness of one of the lights during the scene. How would I go about doing this?

So far, I tried to set glLightfv(with GL_AMBIENT flag and different brightness settings) within onDrawFrame() function and that didn't do anything. I also tried disabling and re-enabling it before and after glLightfv() which also didn't help.

This should be possible, correct?

Thank you.

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