Question: Two different shapes overlap at a particular pixel point in our rendered image. Each shape color at this point is as follows: Shape 1 :

Two different shapes overlap at a particular pixel point in our rendered image. Each shape color at this point is as follows:
Shape 1: (1.0,0.0,0.0,0.5)
Shape 2: (0.0,0.0,1.0,0.5)
We also have these lines in our code:
gl.blendFunc(gl.SRC_ALPHA, gl.ONE_MINUS_SRC_ALPHA);
gl.enable(gl.BLEND);
Describe the final pixel color in terms of RGB colors. Explain how you can tell just by looking at the information above. Don't worry about the order in which the shapes are drawn.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!