Sign in to follow this  
cippyboy

GL_RGB_SCALE_ARB

Recommended Posts

I`m trying to apply it for each texture unit but it seems only to affect the second unit or just have a general effect, like the scaling is done after the combining of the units A call like-> glTexEnvi(GL_TEXTURE_ENV, GL_RGB_SCALE_ARB,2); Can be done per texture unit or globally ?

Share this post


Link to post
Share on other sites
it's is a per-tex unit effect, and it is applyed after the texture unit maths...

So if you had first texunit is modulate, second is add, eg, (t1*v)+t2, if you set the scale of the second to 4, the equation becomes ((t1*v)+t2)*4. If it was the first, then the equation is (t1*v)*4+t2

etc.

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