Jump to content
  • Advertisement
Sign in to follow this  
cippyboy

GL_RGB_SCALE_ARB

This topic is 4978 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!