Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

jasonf

colour clamping

This topic is 5923 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 away from home and don''t have my ref''s handy, so i''ll throw this one out and see what I get. Please don''t burn me for not looking somewhere else first. If you don''t want to answer, then don''t Fair enough? Here''s what I''m wondering. I''ve got 8 layers blending with each other, but i need to clamp the mixed colours so that I don''t get too many hotspots (white areas) in the final composite. Is there a gl func that handles clamping composited colors or will i have to write my own? Thanks in advance for any suggestions.

Share this post


Link to post
Share on other sites
Advertisement
Use the alpha channel for the transparency of the textures and then glBlendFunc( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA ).

Share this post


Link to post
Share on other sites

  • 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!