Sign in to follow this  
Manja

Texture Mapping - combine functions

Recommended Posts

Manja    145
How is the texture environment mode GL_COMBINE is used, is it to combine color values obtained from two texture units? Where can I get a sample code for this?

Share this post


Link to post
Share on other sites
Enrico    316
This is used to combine textures. You can combine your color values in many different ways (there are a lot of extensions, even Dot3 Bump Mapping!), it just depends on the supported extensions. Additionally, you can combine texture values with vertex color alpha channel. Just play around with the values and see, what happens ;)

Here is some sample code.

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