Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5952895
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T17:44:49+00:00 2026-05-22T17:44:49+00:00

If i have two overlapping triangles, each with gray color (0.1, 0.1, 0.1, 0.1),

  • 0

If i have two overlapping triangles, each with gray color (0.1, 0.1, 0.1, 0.1), how would I set up glBlendFunc, such that the overlapping section renders brighter (closer to white) than the non-overlapping sections?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T17:44:49+00:00Added an answer on May 22, 2026 at 5:44 pm

    You could set up your glBlendFunc like this:

    glEnable(GL_BLEND);
    glBlendFunc(GL_ONE, GL_ONE);
    

    This will give you a blend equation where output_color = 1 * source_color + 1 * destination_color.

    See also this documentation.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two non-overlapping sets of types and want to make other set which
I have two overlapping custom views that need to both receive touch events (e.g.
JsFiddle Link I have two divs overlapping with borders on both. When I set
I have two views partially overlapping each other. They are both children of the
I'm trying to merge two arrays that have some overlapping results and some that
I've got a view that's a union of two tables that have overlapping keys
I have two overlapping divs that have css3 box shadows. The trouble is that
Problem: I have two overlapping 2D shapes, A and B, each shape having the
Hi I have two shapes that are overlapping (implementation in KineticJs). I want to
I have two queries that find both the Zip codes, and the States for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.