Sign in to follow this  
PaganX

Lesson 16, Alpha Color

Recommended Posts

Does the Alpha color have any effect on the fog? I created a dialog box to control RGBA and distancing of the environments fogging. When I change the alpha I see no apparent visual effect. Is my conclusion correct? After reading through a few books and sites I haven't come across any answers.

Share this post


Link to post
Share on other sites
Sorry I missunderstud (read missread) your original post.

Quote:
from man glFogiv:
Fog does not affect a fragment's alpha component.


You are probably looking for GL_FOG_DENSITY, just a guess. If this is not what you are looking for please describe what you are trying to do.

Share this post


Link to post
Share on other sites
glFogfv(GL_FOG_COLOR, COLOR);

Is able to take a 4th value, RGB(A). I was just woundering if the alpha value has any effect on fog or if its just a dead value.

I have messed around with it but havent discovered any purpose for it.

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